summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2003-08-08 13:34:52 +0000
committerIlia Alshanetsky <iliaa@php.net>2003-08-08 13:34:52 +0000
commit77225b912fe5b4438ec6bfdb991e971e55c21ff1 (patch)
treeb2ab84d2a4db8d7c1bff724f7520dec01e4333cf /ext
parentaa3a1426e8841d4aeb7bba1ce6599e6c18f87881 (diff)
downloadphp-git-77225b912fe5b4438ec6bfdb991e971e55c21ff1.tar.gz
MFH: Fixed bug #24909 (Bad random numbers with ZTS builds on Solaris)
Diffstat (limited to 'ext')
-rw-r--r--ext/standard/php_rand.h2
1 files changed, 1 insertions, 1 deletions
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