Hi Yasuo,
Yasuo Ohgaki wrote:
This should be discussed in internals.
MT rand being not MT rand is unacceptable.
This fix must included in released versions. IMHO.
In any case we should provide broken MT rand, we must use INI switch
or other options.
PHP's implementation of the Mersenne Twister algorithm is buggy, so it
doesn't produce the same output as in other languages. But the buggy
algorithm produces sufficiently random sequences of apparently the same
quality as the proper algorithm. So we *could* simply consider this as a
documentation issue if we wanted to. I'm not saying that's the right
course of action, though.
Thanks.
--
Andrea Faulds
https://ajf.me/
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php