Re: xoshiro** edge case (all zeros)
| From: | Tim Düsterhus | Date: | Thu, 04 Aug 2022 20:40:36 +0000 |
| Subject: | Re: xoshiro** edge case (all zeros) | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-118352@lists.php.net to get a copy of this message | ||
Hi
On 8/4/22 22:32, Hans Henrik Bergan wrote:
dangerous to be sure, but it's also a technically valid seed, are you sure we should disallow a valid seed?The all-zero state is not a valid state as per the reference implementation at: https://xoshiro.di.unimi.it/xoshiro256starstar.c
The state must be seeded so that it is not everywhere zero.The period of Xoshiro256** is officially defined to be 2**256 - 1 instead of 2**256 for that reason. Best regards Tim Düsterhus