summaryrefslogtreecommitdiff
path: root/ext/standard/php_rand.h
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2003-08-20 16:40:22 +0000
committerIlia Alshanetsky <iliaa@php.net>2003-08-20 16:40:22 +0000
commitece0a731e9d66f7ea9871df771074a2b3eba76e3 (patch)
treef40937e17cc335ce8158eebb2c420fd163ba9c55 /ext/standard/php_rand.h
parentd70f744a6343f9cd48658bfa193ead420db024fe (diff)
downloadphp-git-ece0a731e9d66f7ea9871df771074a2b3eba76e3.tar.gz
Fixed bug #25170 (Problem with generation of random numbers 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 21bedfb365..0d5927b2cd 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 && !defined(__sun)
+#if defined(HAVE_LRAND48) || defined(HAVE_RANDOM)
#define PHP_RAND_MAX 2147483647
#else
#define PHP_RAND_MAX RAND_MAX