cvs: php-src /ext/standard basic_functions.c

From: Date: Mon, 19 Jan 2004 19:01:19 +0000
Subject: cvs: php-src /ext/standard basic_functions.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-25759@lists.php.net to get a copy of this message
sniper Mon Jan 19 14:01:19 2004 EDT Modified files: /php-src/ext/standard basic_functions.c Log: - Make sure srand() / mt_srand() are really called. http://cvs.php.net/diff.php/php-src/ext/standard/basic_functions.c?r1=1.652&r2=1.653&ty=u Index: php-src/ext/standard/basic_functions.c diff -u php-src/ext/standard/basic_functions.c:1.652 php-src/ext/standard/basic_functions.c:1.653 --- php-src/ext/standard/basic_functions.c:1.652 Thu Jan 8 03:17:30 2004 +++ php-src/ext/standard/basic_functions.c Mon Jan 19 14:01:17 2004 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: basic_functions.c,v 1.652 2004/01/08 08:17:30 andi Exp $ */ +/* $Id: basic_functions.c,v 1.653 2004/01/19 19:01:17 sniper Exp $ */ #include "php.h" #include "php_streams.h" @@ -919,6 +919,9 @@ static void basic_globals_ctor(php_basic_globals *basic_globals_p TSRMLS_DC) { + BG(rand_is_seeded) = 0; + BG(mt_rand_is_seeded) = 0; + BG(next) = NULL; BG(left) = -1; BG(user_tick_functions) = NULL;

« previous php.cvs (#25759) next »