File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ PHP NEWS
2929- Random:
3030 . Fixed bug GH-13544 (Pre-PHP 8.2 compatibility for mt_srand with unknown
3131 modes). (timwolla)
32+ . Fixed bug GH-13690 (Global Mt19937 is not properly reset in-between
33+ requests when MT_RAND_PHP is used). (timwolla)
3234
3335- Session:
3436 . Fixed bug GH-13680 (Segfault with session_decode and compilation error).
Original file line number Diff line number Diff line change @@ -315,6 +315,7 @@ PHPAPI php_random_status *php_random_default_status(void)
315315 php_random_status * status = RANDOM_G (mt19937 );
316316
317317 if (!RANDOM_G (mt19937_seeded )) {
318+ ((php_random_status_state_mt19937 * )status -> state )-> mode = MT_RAND_MT19937 ;
318319 php_random_mt19937_seed_default (status -> state );
319320 RANDOM_G (mt19937_seeded ) = true;
320321 }
You can’t perform that action at this time.
0 commit comments