diff options
| author | Bond_009 <bond.009@outlook.com> | 2021-10-08 15:40:13 +0200 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2021-10-08 15:40:13 +0200 |
| commit | d05062fec06ecba1049beefffe8d8f521d3e1881 (patch) | |
| tree | 8a90dd591a2bc87cdb4f76b6691590cc2072fc3f /tests | |
| parent | 556ef5f157cc1bb3acbc7e1ae3edfa28333914cc (diff) | |
Use new Random.Shared instead of creating new instances
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/Jellyfin.Extensions.Tests/ShuffleExtensionsTests.cs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/Jellyfin.Extensions.Tests/ShuffleExtensionsTests.cs b/tests/Jellyfin.Extensions.Tests/ShuffleExtensionsTests.cs index c72216d94..a73cfb078 100644 --- a/tests/Jellyfin.Extensions.Tests/ShuffleExtensionsTests.cs +++ b/tests/Jellyfin.Extensions.Tests/ShuffleExtensionsTests.cs @@ -5,13 +5,11 @@ namespace Jellyfin.Extensions.Tests { public static class ShuffleExtensionsTests { - private static readonly Random _rng = new Random(); - [Fact] public static void Shuffle_Valid_Correct() { byte[] original = new byte[1 << 6]; - _rng.NextBytes(original); + Random.Shared.NextBytes(original); byte[] shuffled = (byte[])original.Clone(); shuffled.Shuffle(); |
