1
0
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:
Oliver Booth 2022-11-29 16:21:02 +00:00
parent 0aeb6ff46d
commit 1c0c06f89c
No known key found for this signature in database
GPG Key ID: 32A00B35503AF634

View File

@ -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.