We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4ac6f1 commit ee278d8Copy full SHA for ee278d8
ext/random/random.c
@@ -844,6 +844,7 @@ PHP_MSHUTDOWN_FUNCTION(random)
844
845
php_random_status_free(RANDOM_G(combined_lcg), true);
846
RANDOM_G(combined_lcg) = NULL;
847
+
848
php_random_status_free(RANDOM_G(mt19937), true);
849
RANDOM_G(mt19937) = NULL;
850
@@ -858,6 +859,9 @@ PHP_RINIT_FUNCTION(random)
858
859
ZEND_TSRMLS_CACHE_UPDATE();
860
#endif
861
862
+ RANDOM_G(combined_lcg_seeded) = false;
863
+ RANDOM_G(mt19937_seeded) = false;
864
865
return SUCCESS;
866
}
867
/* }}} */
0 commit comments