We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58984e8 commit 247c1beCopy full SHA for 247c1be
1 file changed
AsyncKeyedLock.Tests/StripedAsyncKeyedLocker/StressTests.cs
@@ -141,7 +141,7 @@ public async Task BenchmarkSimulationTest()
141
142
if (!_shuffledIntegers.TryGetValue(Contention * NumberOfLocks, out var ShuffledIntegers))
143
{
144
- ShuffledIntegers = Enumerable.Range(0, Contention * NumberOfLocks).ToList();
+ ShuffledIntegers = [.. Enumerable.Range(0, Contention * NumberOfLocks)];
145
ShuffledIntegers.Shuffle();
146
_shuffledIntegers[Contention * NumberOfLocks] = ShuffledIntegers;
147
}
0 commit comments