summaryrefslogtreecommitdiff
path: root/ext/standard/php_rand.h
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2003-08-08 13:34:38 +0000
committerIlia Alshanetsky <iliaa@php.net>2003-08-08 13:34:38 +0000
commit6f2df2113612fcb492923b31daea6e78510b4a5f (patch)
tree7047ded8a727799c124ace238ffae40c825d0123 /ext/standard/php_rand.h
parent5c9b6bf0ca673365eb56199ca8c5b9090c0d15ef (diff)
downloadphp-git-6f2df2113612fcb492923b31daea6e78510b4a5f.tar.gz
Fixed bug #24909 (Bad random numbers with ZTS builds on Solaris)
Diffstat (limited to 'ext/standard/php_rand.h')
-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 cac16790cd..b770386850 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