Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SeedableRng::seed_from_u64 panics if the Seed type's length is not a multiple of 4 #1082

sfackler opened this issue Dec 31, 2020 · 1 comment · Fixed by hacspec/hacspec#80 or apllodb/apllodb#156 · May be fixed by transparencies/zip#2 or Lionjudge9061-corp/mobilecoin#2


Copy link

If a SeedableRng implementation uses a seed type with a length that isn't divisible by 4, the final chunk of the seed buffer will not be 4 bytes, so the copy_from_slice call will panic:

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