这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@TheIronBorn
Copy link

Currently there's a chance a seed of all zeros could be produced by the other RNG. A zero seed will never produce anything but zero because of the way the RNG works.

"The state must be seeded so that it is not everywhere zero."
--http://xoroshiro.di.unimi.it/xoroshiro128plus.c

Currently there's a chance a seed of all zeros could be produced by the other RNG.  A zero seed will never produce anything but zero because of the way the RNG works and <http://xoroshiro.di.unimi.it/xoroshiro128plus.c> notes that "The state must be seeded so that it is not everywhere zero."
@TheIronBorn
Copy link
Author

The same check could be added to the SeedableRng trait implementation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant