summaryrefslogtreecommitdiff
path: root/ext/standard/crypt.c
diff options
context:
space:
mode:
authorDerick Rethans <derick@php.net>2001-01-08 21:13:24 +0000
committerDerick Rethans <derick@php.net>2001-01-08 21:13:24 +0000
commitaff9ff83562164a33289610260c081767ae971ae (patch)
tree8253d04118b483380ce039e91f7e48f7b29622bf /ext/standard/crypt.c
parent74175e429d160bef4a020fea76781fc6b6ad9c38 (diff)
downloadphp-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.c2
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