Skip to content

Commit 2235479

Browse files
author
Jeroen van Wolffelaar
committed
Fixed the right version
1 parent 8d6a9b0 commit 2235479

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ext/standard/crypt.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ PHP_MINIT_FUNCTION(crypt)
106106
PHP_RINIT_FUNCTION(crypt)
107107
{
108108
if(!php_crypt_rand_seeded) {
109-
php_srand(time(0) * getpid() * (php_combined_lcg(TSRMLS_C) * 10000.0));
109+
/* FIXME (jeroen): temporary fix for RAND_REDESIGN */
110+
php_srand_sys(time(0) * getpid() * (php_combined_lcg(TSRMLS_C) * 10000.0));
110111
php_crypt_rand_seeded=1;
111112
}
112113
return SUCCESS;

0 commit comments

Comments
 (0)