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

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php

Reply via email to