Re: mt_srand with array seed?
| From: | Tom Worster | Date: | Sat, 13 Aug 2016 15:53:18 +0000 |
| Subject: | Re: mt_srand with array seed? | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-95119@lists.php.net to get a copy of this message | ||
On 8/12/16 2:48 PM, Lauri Kenttä wrote:
On 2016-08-12 21:40, Tom Worster wrote:Would mt_srand([1,2,3,4,5,6,7,8]) set the same seed on 32 and 64 bit machines? Tommt_srand() will work. But what would be in the array? Integers from which the upper 32 bits, if they exist, are discarded?mt19937ar.c contains init_by_array. Compability with that would probably be a good goal, unless someone can point out another widely used implementation.