From: foobar Date: Mon, 19 Jan 2004 19:01:17 +0000 (+0000) Subject: - Make sure srand() / mt_srand() are really called. X-Git-Tag: php_ibase_before_split~89 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dde4c166c938672bf171c67f7784aece5fdf3c39;p=php - Make sure srand() / mt_srand() are really called. --- diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index 815d34791f..e2bb00abbe 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -919,6 +919,9 @@ static void php_putenv_destructor(putenv_entry *pe) 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;