From 43c2bc364fb120a714bfc8caf80e9e8077aed63c Mon Sep 17 00:00:00 2001 From: Jeroen van Wolffelaar Date: Wed, 22 Aug 2001 22:11:57 +0000 Subject: [PATCH] Commit forgotten fix in crypt.c, oversight of a BC-problem --- ext/standard/crypt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/standard/crypt.c b/ext/standard/crypt.c index 00490f78e4..5489f01a75 100644 --- a/ext/standard/crypt.c +++ b/ext/standard/crypt.c @@ -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; -- 2.50.1