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 <[EMAIL PROTECTED]> |
+----------------------------------------------------------------------+
*/
-/* $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
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php