cvs: php4 /ext/standard crypt.c

From: Date: Wed, 22 Aug 2001 22:14:09 +0000
Subject: cvs: php4 /ext/standard crypt.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-7029@lists.php.net to get a copy of this message
jeroen Wed Aug 22 18:14:09 2001 EDT Modified files: /php4/ext/standard crypt.c Log: Reverted the patch to main branch - should have branched whole ext/standard... Index: php4/ext/standard/crypt.c diff -u php4/ext/standard/crypt.c:1.46 php4/ext/standard/crypt.c:1.47 --- php4/ext/standard/crypt.c:1.46 Wed Aug 22 18:11:57 2001 +++ php4/ext/standard/crypt.c Wed Aug 22 18:14:08 2001 @@ -17,7 +17,7 @@ | Rasmus Lerdorf <rasmus@lerdorf.on.ca> | +----------------------------------------------------------------------+ */ -/* $Id: crypt.c,v 1.46 2001/08/22 22:11:57 jeroen Exp $ */ +/* $Id: crypt.c,v 1.47 2001/08/22 22:14:08 jeroen Exp $ */ #include <stdlib.h> #include "php.h" @@ -106,8 +106,7 @@ 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;

« previous php.cvs (#7029) next »