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
29
29
- Random:
30
30
. Fixed bug GH-13544 (Pre-PHP 8.2 compatibility for mt_srand with unknown
31
31
modes). (timwolla)
32
+ . Fixed bug GH-13690 (Global Mt19937 is not properly reset in-between
33
+ requests when MT_RAND_PHP is used). (timwolla)
32
34
33
35
- Session:
34
36
. 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)
315
315
php_random_status * status = RANDOM_G (mt19937 );
316
316
317
317
if (!RANDOM_G (mt19937_seeded )) {
318
+ ((php_random_status_state_mt19937 * )status -> state )-> mode = MT_RAND_MT19937 ;
318
319
php_random_mt19937_seed_default (status -> state );
319
320
RANDOM_G (mt19937_seeded ) = true;
320
321
}
You can’t perform that action at this time.
0 commit comments