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
The scaling algorithm used internally by MT_RAND_PHP causes undefined CPU-dependent behavior.
This breaks compatibility of the MT random number sequences generated across platforms. (Its properties as a random number are already broken because it is improperly used.)
Activity
zeriyoshi commentedon Jul 29, 2022
We can unify the behavior with a wicked implementation like this:
Fix undefined behavior of MT_RAND_PHP if range exceeds ZEND_LONG_MAX (#…