cvs: php-src /ext/standard php_rand.h

From: Date: Fri, 08 Aug 2003 13:34:38 +0000
Subject: cvs: php-src /ext/standard php_rand.h
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-23006@lists.php.net to get a copy of this message
iliaa Fri Aug 8 09:34:38 2003 EDT Modified files: /php-src/ext/standard php_rand.h Log: Fixed bug #24909 (Bad random numbers with ZTS builds on Solaris) Index: php-src/ext/standard/php_rand.h diff -u php-src/ext/standard/php_rand.h:1.21 php-src/ext/standard/php_rand.h:1.22 --- php-src/ext/standard/php_rand.h:1.21 Tue Jun 10 16:03:38 2003 +++ php-src/ext/standard/php_rand.h Fri Aug 8 09:34:38 2003 @@ -20,7 +20,7 @@ | Based on code from: Shawn Cokus <Cokus@math.washington.edu> | +----------------------------------------------------------------------+ */ -/* $Id: php_rand.h,v 1.21 2003/06/10 20:03:38 imajes Exp $ */ +/* $Id: php_rand.h,v 1.22 2003/08/08 13:34:38 iliaa Exp $ */ #ifndef PHP_RAND_H #define 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

« previous php.cvs (#23006) next »