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

Make the RNG for tests reproducible #12

Open
mpenciak opened this issue Jun 14, 2023 · 1 comment
Open

Make the RNG for tests reproducible #12

mpenciak opened this issue Jun 14, 2023 · 1 comment

Comments

@mpenciak
Copy link
Contributor

This issue aims to change all of the tests to use reproducible, seeded random values.

The following rng setup was recommended by @huitseeker:

use rand_chacha::ChaChaRng;
use rand_core::SeedableRng;

let mut rng = ChaChaRng::from_seed([0u8; 32]);
@mpenciak mpenciak mentioned this issue Jun 14, 2023
9 tasks
@storojs72
Copy link
Collaborator

Yes. Probably, this makes sense to have all test vectors using deterministic input/output

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

No branches or pull requests

2 participants