]> granicus.if.org Git - php/commit
Revert "Fix #71152: mt_rand() returns the different values from original mt19937ar.c"
authorLeigh <leigh@php.net>
Thu, 18 Feb 2016 11:09:01 +0000 (11:09 +0000)
committerLeigh <leigh@php.net>
Thu, 18 Feb 2016 11:09:01 +0000 (11:09 +0000)
commita0724d30817600540946b41e40f4cfc2a0c30f80
tree52c39e148393d2679158a590e53508c0c90fd0e7
parentaa383d633e72d7c9f5e9b0cb4fa75757558cad55
Revert "Fix #71152: mt_rand() returns the different values from original mt19937ar.c"

This reverts commit 6f6bd8ce531636134efd5f669a4e8373fb2e9e51.

`mt_rand()` is seedable with `mt_srand()` which means it can be used to (re)produce specific streams of numbers. All code (no matter how few instances that may be) that previously depended on this behaviour will no longer produce the same results.

This kind of change needs to be discussed before being committed.
ext/standard/rand.c
ext/standard/tests/math/mt_rand_value.phpt [deleted file]