diff options
author | Derick Rethans <derick@php.net> | 2001-01-08 21:13:24 +0000 |
---|---|---|
committer | Derick Rethans <derick@php.net> | 2001-01-08 21:13:24 +0000 |
commit | aff9ff83562164a33289610260c081767ae971ae (patch) | |
tree | 8253d04118b483380ce039e91f7e48f7b29622bf /ext/standard/crypt.c | |
parent | 74175e429d160bef4a020fea76781fc6b6ad9c38 (diff) | |
download | php-git-aff9ff83562164a33289610260c081767ae971ae.tar.gz |
- Fix for bug #8535 - floating point exception on FreeBSD while initializing
crypt random numbers
Diffstat (limited to 'ext/standard/crypt.c')
-rw-r--r-- | ext/standard/crypt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/crypt.c b/ext/standard/crypt.c index aa10020bee..d4cc55b43c 100644 --- a/ext/standard/crypt.c +++ b/ext/standard/crypt.c @@ -106,7 +106,7 @@ PHP_MINIT_FUNCTION(crypt) REGISTER_LONG_CONSTANT("CRYPT_BLOWFISH", PHP_BLOWFISH_CRYPT, CONST_CS | CONST_PERSISTENT); #if HAVE_SRAND48 - srand48((unsigned int) time(0) * getpid() * (php_combined_lcg() * 10000.0)); + srand48((long) time(0) * (long) getpid() * (long) (php_combined_lcg() * 10000.0)); #elif HAVE_SRANDOM srandom((unsigned int) time(0) * getpid() * (php_combined_lcg() * 10000.0)); #else |