Skip to content

Commit

Permalink
fix random ordered list
Browse files Browse the repository at this point in the history
  • Loading branch information
dipkakwani committed Dec 3, 2024
1 parent ad04e57 commit 9519e8f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Paprika.Benchmarks/SlottedArrayBenchmarks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ public SlottedArrayBenchmarks()

// Randomly shuffle the indices.
var rand = new Random(13);
rand.Shuffle(randomKeysIndexSpan);
var randomKeysSlice = randomKeysIndexSpan.Slice(0, KeyCount - 1);
rand.Shuffle(randomKeysSlice);
}

[Benchmark(OperationsPerInvoke = 4)]
Expand Down

0 comments on commit 9519e8f

Please sign in to comment.