[php-src] PR #13544: random: Fix unknown `mt_srand()` compatibility for unknown modes
| From: | TimWolla | Date: | Tue, 27 Feb 2024 22:15:49 +0000 |
| Subject: | [php-src] PR #13544: random: Fix unknown `mt_srand()` compatibility for unknown modes | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-25179@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/13544
Author: TimWolla
see: https://3v4l.org/fOZbQ. Will need some adjustments when
merging to PHP 8.3, due to the deprecation.
-----------
PHP 8.1 and below interpreted unknown modes as
MT_RAND_MT19937, but PHP 8.2+ interprets
them as MT_RAND_PHP.
Align the behavior with PHP 8.1 and below, because folks should be steered towards the standard
mode.