From 5e0cb1eae10885b65f12f366276ee517816f0a60 Mon Sep 17 00:00:00 2001 From: 2881099 <2881099@qq.com> Date: Wed, 30 Jan 2019 22:11:55 +0800 Subject: [PATCH] =?UTF-8?q?ThreadLocal=E4=BF=AE=E6=94=B9=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FreeSql/FreeUtil.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FreeSql/FreeUtil.cs b/FreeSql/FreeUtil.cs index 11dc386a..02eb631b 100644 --- a/FreeSql/FreeUtil.cs +++ b/FreeSql/FreeUtil.cs @@ -10,7 +10,7 @@ using System.Threading; public static class FreeUtil { private static DateTime dt1970 = new DateTime(1970, 1, 1); - private static ThreadLocal rnd = new ThreadLocal(); + private static ThreadLocal rnd = new ThreadLocal(() => new Random()); private static readonly int __staticMachine = ((0x00ffffff & Environment.MachineName.GetHashCode()) + #if NETSTANDARD1_5 || NETSTANDARD1_6 1