Skip to content

Commit

Permalink
Use Keypair::new where chacha isn't used
Browse files Browse the repository at this point in the history
  • Loading branch information
joncinque committed Aug 17, 2023
1 parent 094bfec commit 823149a
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions ledger/src/shred/merkle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 823149a

Please sign in to comment.