summaryrefslogtreecommitdiff
path: root/ext/standard/crypt.c
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2001-10-21 03:01:17 +0000
committerfoobar <sniper@php.net>2001-10-21 03:01:17 +0000
commit5db38caeced6df0bbbad12b926765b41d3396e23 (patch)
tree7a1e14bf952ff697926df14d7d2bcd1b9819109d /ext/standard/crypt.c
parentcc0c2ea60393f472e09303c6ecdbfc0a0b97ae6b (diff)
downloadphp-git-5db38caeced6df0bbbad12b926765b41d3396e23.tar.gz
Fixed bugs: #13251, #9827, #11363
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 3485cdac92..91f3168f47 100644
--- a/ext/standard/crypt.c
+++ b/ext/standard/crypt.c
@@ -106,7 +106,7 @@ PHP_MINIT_FUNCTION(crypt)
PHP_RINIT_FUNCTION(crypt)
{
if(!php_crypt_rand_seeded) {
- php_srand(time(0) * getpid() * (php_combined_lcg(TSRMLS_C) * 10000.0) TSRMLS_CC);
+ php_srand(time(0) * getpid() * (unsigned long) (php_combined_lcg(TSRMLS_C) * 10000.0) TSRMLS_CC);
php_crypt_rand_seeded=1;
}
return SUCCESS;