diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2003-08-20 16:40:22 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2003-08-20 16:40:22 +0000 |
commit | ece0a731e9d66f7ea9871df771074a2b3eba76e3 (patch) | |
tree | f40937e17cc335ce8158eebb2c420fd163ba9c55 /main/reentrancy.c | |
parent | d70f744a6343f9cd48658bfa193ead420db024fe (diff) | |
download | php-git-ece0a731e9d66f7ea9871df771074a2b3eba76e3.tar.gz |
Fixed bug #25170 (Problem with generation of random numbers on solaris)
Diffstat (limited to 'main/reentrancy.c')
-rw-r--r-- | main/reentrancy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/reentrancy.c b/main/reentrancy.c index a63980cbdb..21289e58f8 100644 --- a/main/reentrancy.c +++ b/main/reentrancy.c @@ -35,7 +35,7 @@ #endif #include "php_reentrancy.h" -#include "ext/standard/php_rand.h" /* for RAND_MAX */ +#include "ext/standard/php_rand.h" /* for PHP_RAND_MAX */ enum { LOCALTIME_R, @@ -368,7 +368,7 @@ void reentrancy_shutdown(void) static int do_rand(unsigned long *ctx) { - return ((*ctx = *ctx * 1103515245 + 12345) % ((u_long)RAND_MAX + 1)); + return ((*ctx = *ctx * 1103515245 + 12345) % ((u_long)PHP_RAND_MAX + 1)); } |