Reverted the patch to main branch - should have branched whole

ext/standard...
This commit is contained in:
Jeroen van Wolffelaar 2001-08-22 22:14:08 +00:00
parent 43c2bc364f
commit 3e62bd0867

View file

@ -106,8 +106,7 @@ PHP_MINIT_FUNCTION(crypt)
PHP_RINIT_FUNCTION(crypt)
{
if(!php_crypt_rand_seeded) {
/* FIXME (jeroen): temporary fix for RAND_REDESIGN */
php_srand_sys(time(0) * getpid() * (php_combined_lcg(TSRMLS_C) * 10000.0));
php_srand(time(0) * getpid() * (php_combined_lcg(TSRMLS_C) * 10000.0));
php_crypt_rand_seeded=1;
}
return SUCCESS;