mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-04-22 10:42:52 +08:00
ThreadLocal修改使用方式
This commit is contained in:
parent
b9a9106f86
commit
5e0cb1eae1
@ -10,7 +10,7 @@ using System.Threading;
|
||||
public static class FreeUtil {
|
||||
|
||||
private static DateTime dt1970 = new DateTime(1970, 1, 1);
|
||||
private static ThreadLocal<Random> rnd = new ThreadLocal<Random>();
|
||||
private static ThreadLocal<Random> rnd = new ThreadLocal<Random>(() => new Random());
|
||||
private static readonly int __staticMachine = ((0x00ffffff & Environment.MachineName.GetHashCode()) +
|
||||
#if NETSTANDARD1_5 || NETSTANDARD1_6
|
||||
1
|
||||
|
Loading…
x
Reference in New Issue
Block a user