From deb27af4f000fb9fc5a4b70a5555e156fe90f88f Mon Sep 17 00:00:00 2001 From: rsk0315 Date: Thu, 22 Feb 2024 09:39:26 +0900 Subject: [PATCH] bug --- nekolib-src/ds/rs01_dict/benches/bench_selects.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nekolib-src/ds/rs01_dict/benches/bench_selects.rs b/nekolib-src/ds/rs01_dict/benches/bench_selects.rs index 8e83d9dbef..5ef0ba520f 100644 --- a/nekolib-src/ds/rs01_dict/benches/bench_selects.rs +++ b/nekolib-src/ds/rs01_dict/benches/bench_selects.rs @@ -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);