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;
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php