Closed Andrew-Shay closed 4 years ago
The sample code in the documentation uses the deprecated rand_os https://docs.rs/rand_os/0.2.2/rand_os/
rand_os
Deprecated since 0.2.2: OsRng is now provided by rand_core and rand
Is there a sample that uses rand_core or rand?
rand_core
rand
Here's a snippet that seems to work but I don't know if it's secure
use rand_core::{OsRng}; let mut alice_csprng = OsRng;
@Andrew-Shay Yes, that looks right to me. I'll try to update the docs tomorrow.
The sample code in the documentation uses the deprecated
rand_os
https://docs.rs/rand_os/0.2.2/rand_os/Is there a sample that uses
rand_core
orrand
?Here's a snippet that seems to work but I don't know if it's secure