]> granicus.if.org Git - php/commitdiff
- Make sure srand() / mt_srand() are really called.
authorfoobar <sniper@php.net>
Mon, 19 Jan 2004 19:01:17 +0000 (19:01 +0000)
committerfoobar <sniper@php.net>
Mon, 19 Jan 2004 19:01:17 +0000 (19:01 +0000)
ext/standard/basic_functions.c

index 815d34791fa1866deda4880d8dae57508350e471..e2bb00abbedc319d8d5044911d3aa2bc07caeb9c 100644 (file)
@@ -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;