Browse Source

utils: fix permutation benchmark

Lennart Braun 1 year ago
parent
commit
1e97a67d9d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      utils/benches/permutation.rs

+ 1 - 1
utils/benches/permutation.rs

@@ -9,7 +9,7 @@ pub fn bench_permutation(c: &mut Criterion) {
             BenchmarkId::new("FisherYates", log_domain_size),
             &log_domain_size,
             |b, &log_domain_size| {
-                let key = FisherYatesPermutation::sample(log_domain_size);
+                let key = FisherYatesPermutation::sample(1 << log_domain_size);
                 b.iter(|| black_box(FisherYatesPermutation::from_key(key)))
             },
         );