mirror of
https://github.com/arnaucube/miden-crypto.git
synced 2026-01-10 16:11:30 +01:00
fix: nostd issue
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user