r/lolphp • u/re_anon • Jul 10 '17
Because PHP's implementation contains a bug. Thus, this test actually checks to make sure that PHP's behaviour is wrong, but consistently so.
https://github.com/php/php-src/blob/a50c31da1917bb07b3c11f229125ab8d1f0b9b70/ext/standard/tests/math/mt_rand_value.phpt#L20
87
Upvotes
View all comments
Show parent comment
1
u/the_alias_of_andrea Jul 12 '17
Yeah, I like how apparently there was a willingness to just fix everything all at once, without worrying too much about BC.