fix: nostd issue

This commit is contained in:
Al-Kindi-0
2024-04-20 18:27:12 +02:00
parent 6e2657dae1
commit 3a3bd61152

View File

@@ -23,10 +23,11 @@ mod tests {
#[test] #[test]
fn test_falcon_verification() { 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 // generate random keys
let sk = SecretKey::new(); let sk = SecretKey::with_rng(&mut rng);
let pk = sk.public_key(); let pk = sk.public_key();
// test secret key serialization/deserialization // test secret key serialization/deserialization