fix: nostd issue
Al-Kindi-0 82364884+Al-Kindi-0@users.noreply.github.com
Sat, 20 Apr 2024 18:27:12 +0200
1 files changed,
3 insertions(+),
2 deletions(-)
M
src/dsa/rpo_falcon512/keys/mod.rs
→
src/dsa/rpo_falcon512/keys/mod.rs
@@ -23,10 +23,11 @@ use winter_utils::{Deserializable, Serializable};
#[test] fn test_falcon_verification() { - let mut rng = ChaCha20Rng::from_entropy(); + let seed = [0_u8; 32]; + let mut rng = ChaCha20Rng::from_seed(seed); // generate random keys - let sk = SecretKey::new(); + let sk = SecretKey::with_rng(&mut rng); let pk = sk.public_key(); // test secret key serialization/deserialization