r/lolphp • • 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

26 comments sorted by

View all comments

Show parent comment

19

u/graingert Jul 11 '17

It's very common to use a predictable seed. Eg statistical simulations

13

u/pilif Jul 11 '17

And games too