4 ms·
It's useful to have a seed able Rng when running tests in cryptographic use cases, as it allows you to reproducibly debug failures. I guess that's why they're u
by Ar-Curunir 7y ago
It's useful to have a seed able Rng when running tests in cryptographic use cases, as it allows you to reproducibly debug failures. I guess that's why they're using XorShiftRng. There are definitely cryptographically safe SeedableRngs; maybe they should use those?
- whyever 7y agoYes, I would recommend to use `rand_chacha::ChaCha20Rng`, which is equivalent to `rand::rngs::StdRng`, but is guaranteed to be value stable.