diff --git a/ledger/src/shred/merkle.rs b/ledger/src/shred/merkle.rs index 84bbf09aae606b..cd77066a7e947a 100644 --- a/ledger/src/shred/merkle.rs +++ b/ledger/src/shred/merkle.rs @@ -1176,9 +1176,7 @@ mod test { num_coding_shreds: usize, reed_solomon_cache: &ReedSolomonCache, ) { - let mut seed = [0u8; Keypair::SECRET_KEY_LENGTH]; - rng.fill(&mut seed[..]); - let keypair = keypair_from_seed(&seed).unwrap(); + let keypair = Keypair::new(); let num_shreds = num_data_shreds + num_coding_shreds; let proof_size = get_proof_size(num_shreds); let capacity = ShredData::capacity(proof_size).unwrap(); @@ -1361,9 +1359,7 @@ mod test { reed_solomon_cache: &ReedSolomonCache, ) { let thread_pool = ThreadPoolBuilder::new().num_threads(2).build().unwrap(); - let mut seed = [0u8; Keypair::SECRET_KEY_LENGTH]; - rng.fill(&mut seed[..]); - let keypair = keypair_from_seed(&seed).unwrap(); + let keypair = Keypair::new(); let slot = 149_745_689; let parent_slot = slot - rng.gen_range(1..65536); let shred_version = rng.gen();