[bug] random.string
function does not use rand_chacha::ChaCha20Rng
#774
Labels
bug
Something isn't working
Describe the bug
Although
rand::thread_rng
seems to be good for most use cases it has not undergone the same level of scrutiny asrand_chacha::ChaCha20Rng
which is why we chose it forrandom.bool
andrandom.int
. As we are trying to allow for therandom
library to be cryptographically secure we should try to collapse to justrand_chacha::ChaCha20Rng
.Additional context
https://rust-random.github.io/book/guide-gen.html#cryptographically-secure-pseudo-random-number-generator
https://rust-random.github.io/rand/rand_chacha/struct.ChaCha20Rng.html
The text was updated successfully, but these errors were encountered: