Skip to content

Commit

Permalink
Made the RandomHelper thread-safe.
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkCiliaVincenti committed Jul 22, 2024
1 parent f7ea46a commit f3e5da2
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/EasyCaching.Core/Internal/RandomHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ public static class RandomHelper
});
#endif

#if NETSTANDARD2_0
private static readonly Random _random = new Random();
#endif

public static int GetNext(int min, int max)
{
return Instance.Next(min, max);
Expand Down

0 comments on commit f3e5da2

Please sign in to comment.