mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-10 03:25:41 +00:00
Only create Shared random for .NET < 6
This commit is contained in:
parent
0aeb6ff46d
commit
1c0c06f89c
@ -1,4 +1,4 @@
|
||||
using System.Globalization;
|
||||
using System.Globalization;
|
||||
using System.Text;
|
||||
using X10D.Math;
|
||||
|
||||
@ -9,7 +9,9 @@ namespace X10D.Core;
|
||||
/// </summary>
|
||||
public static class RandomExtensions
|
||||
{
|
||||
#if !NET6_0_OR_GREATER
|
||||
private static readonly Random Shared = new();
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// Returns a random value that defined in a specified enum.
|
||||
|
Loading…
Reference in New Issue
Block a user