Skip to content

Commit

Permalink
bug
Browse files Browse the repository at this point in the history
  • Loading branch information
rsk0315 committed Feb 22, 2024
1 parent 56057c4 commit deb27af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nekolib-src/ds/rs01_dict/benches/bench_selects.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ fn bench_selects(c: &mut Criterion) {
0xF5, 0xDD, 0x07, 0x06, 0xAE, 0xE4, 0x5A, 0xDC,
]);
let len = 1 << 20;
let dist = Bernoulli::new(1.0e-3).unwrap();
let p = 0.5;
let dist = Bernoulli::new(p).unwrap();
let a: Vec<_> = (0..len).map(|_| dist.sample(&mut rng)).collect();

let rs = Rs01Dict::new(&a);
Expand Down

0 comments on commit deb27af

Please sign in to comment.