You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just found the answer. Starting with php7.1 mt_rand seeds are not retained. This is the commit for this change.
answered Dec 8, 2018 at 23:21
Jens Klammerer
Our documentation currently covers PHP up to "7.1.0+", but apparently a relevant change was made already in php-7.1.4RC1+:
https://stackoverflow.com/questions/53687593/when-is-mt-rand-seeded
The commit is php/php-src@e9e860a
and is included in tags php-7.1.4RC1 through php-8.4.2 and security-audit-2024.
Also relevant is this recent blog post:
https://whiteknightlabs.com/2024/06/14/exploiting-gh-13690-mt_rand-in-php-in-2024/
about a PHP reseeding bug fixed just recently, apparently in PHP 8.3.6 and 8.2.18:
We should double-check this and document it. Also, read up on the PHP bugs above (not just third-party blog).
The text was updated successfully, but these errors were encountered: