Add sampling logic and DuplicateSlotRepairStatus module (#18721)
This commit is contained in:
@@ -21,7 +21,7 @@ fn bench_weighted_shuffle_old(bencher: &mut Bencher) {
|
||||
let weights = make_weights(&mut rng);
|
||||
bencher.iter(|| {
|
||||
rng.fill(&mut seed[..]);
|
||||
weighted_shuffle(&weights, seed);
|
||||
weighted_shuffle::<u64, &u64, std::slice::Iter<'_, u64>>(weights.iter(), seed);
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user