diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-03-22 06:14:18 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-03-22 06:14:18 +0000 |
commit | 0a8dc1a9440fc1c4e706f5d346895f67a329ce54 (patch) | |
tree | bb05e1c410a1c0ac81ea3f4be160222010060a73 /include/stdlib.h | |
parent | c132ecc38fe4508e9dbd97ec9ada86d6637d97ae (diff) |
Add in random(), make rand use that under the hood. Fix the
include file so folks know random is now there.
Diffstat (limited to 'include/stdlib.h')
-rw-r--r-- | include/stdlib.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/stdlib.h b/include/stdlib.h index 6102eea5a..4f225aacc 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -17,7 +17,7 @@ #define EXIT_SUCCESS 0 /* Successful exit status. */ /* The largest number rand will return */ -#define RAND_MAX INT_MIN +#define RAND_MAX INT_MAX /* Maximum length of a multibyte character in the current locale. */ #define MB_CUR_MAX 1 @@ -58,7 +58,8 @@ extern double strtod __P ((const char * nptr, char ** endptr)); /* Random number functions */ extern int rand __P ((void)); extern void srand __P ((unsigned int seed)); - +extern long int random(void); +extern void srandom(unsigned int seed); /* Memory management functions */ extern __ptr_t calloc __P ((size_t, size_t)); |