From: Ilia Alshanetsky Date: Fri, 8 Aug 2003 13:34:52 +0000 (+0000) Subject: MFH: Fixed bug #24909 (Bad random numbers with ZTS builds on Solaris) X-Git-Tag: php-4.3.3RC4~83 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=77225b912fe5b4438ec6bfdb991e971e55c21ff1;p=php MFH: Fixed bug #24909 (Bad random numbers with ZTS builds on Solaris) --- diff --git a/ext/standard/php_rand.h b/ext/standard/php_rand.h index 2b0a631d68..5a718bdd52 100644 --- a/ext/standard/php_rand.h +++ b/ext/standard/php_rand.h @@ -33,7 +33,7 @@ #define RAND_MAX (1<<15) #endif -#if HAVE_LRAND48 +#if HAVE_LRAND48 && !defined(__sun) #define PHP_RAND_MAX 2147483647 #else #define PHP_RAND_MAX RAND_MAX