Skip to content

Commit

Permalink
Fix cargo bench nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
sakridge committed Jun 18, 2018
1 parent 92599ac commit 31198bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/signature.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ mod bench {

#[bench]
fn bench_gen_keys(b: &mut Bencher) {
let seed: &[_] = &[1, 2, 3, 4];
let mut seed = [0u8; 32];
seed[0..3].copy_from_slice(&[1, 2, 3, 4]);
let rnd = GenKeys::new(seed);
b.iter(|| rnd.gen_n_keypairs(1000));
}
Expand Down

0 comments on commit 31198bc

Please sign in to comment.