Skip to content

Commit

Permalink
fix bloom bench
Browse files Browse the repository at this point in the history
  • Loading branch information
marvin-j97 committed Feb 8, 2025
1 parent bffed53 commit 4a45152
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions benches/bloom.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ fn filter_contains(c: &mut Criterion) {
filter.set_with_hash(BloomFilter::get_hash(key));
}

let mut rng = rand::thread_rng();
let mut rng = rand::rng();

c.bench_function(
&format!(
Expand All @@ -34,7 +34,7 @@ fn filter_contains(c: &mut Criterion) {
),
|b| {
b.iter(|| {
use rand::seq::SliceRandom;
use rand::seq::IndexedRandom;

let sample = keys.choose(&mut rng).unwrap();
let hash = BloomFilter::get_hash(sample);
Expand Down

0 comments on commit 4a45152

Please sign in to comment.