From ece0a731e9d66f7ea9871df771074a2b3eba76e3 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Wed, 20 Aug 2003 16:40:22 +0000 Subject: Fixed bug #25170 (Problem with generation of random numbers on solaris) --- ext/standard/php_rand.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext') 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 -- cgit v1.2.1