mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Commit forgotten fix in crypt.c, oversight of a BC-problem
This commit is contained in:
parent
8ade27507a
commit
43c2bc364f
1 changed files with 2 additions and 1 deletions
|
@ -106,7 +106,8 @@ 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));
|
||||
/* FIXME (jeroen): temporary fix for RAND_REDESIGN */
|
||||
php_srand_sys(time(0) * getpid() * (php_combined_lcg(TSRMLS_C) * 10000.0));
|
||||
php_crypt_rand_seeded=1;
|
||||
}
|
||||
return SUCCESS;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue