From dde4c166c938672bf171c67f7784aece5fdf3c39 Mon Sep 17 00:00:00 2001 From: foobar Date: Mon, 19 Jan 2004 19:01:17 +0000 Subject: [PATCH] - Make sure srand() / mt_srand() are really called. --- ext/standard/basic_functions.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.40.0