php-src/ext/random
Tim Düsterhus f34721cabd
random: Initialize the mode field when seeding in php_random_default_status() (#13690)
This is not just an issue due to missing initialization since moving the state
struct directly into the module globals. In earlier versions changing the mode
to `MT_RAND_PHP` within a single request would also affect the mode for
subsequent requests.

Original commit message follows:

This is a follow-up fix for GH-13579. The issue was detected in the nightly
MSAN build.

(cherry picked from commit bf0abd1629)
2024-03-13 20:13:48 +01:00
..
tests random: Fix unknown mt_srand() compatibility for unknown modes (#13544) 2024-02-29 18:05:59 +01:00
config.m4
config.w32
CREDITS
engine_combinedlcg.c
engine_mt19937.c
engine_pcgoneseq128xslrr64.c
engine_secure.c
engine_user.c
engine_xoshiro256starstar.c
php_random.h
random_arginfo.h
random.c random: Initialize the mode field when seeding in php_random_default_status() (#13690) 2024-03-13 20:13:48 +01:00
random.stub.php
randomizer.c