Browse Source

fix: nostd issue

al-falcon-test-vectors
Al-Kindi-0 1 year ago
parent
commit
3a3bd61152
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      src/dsa/rpo_falcon512/keys/mod.rs

+ 3
- 2
src/dsa/rpo_falcon512/keys/mod.rs

@ -23,10 +23,11 @@ mod tests {
#[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

Loading…
Cancel
Save