From af440162f7a31789af1251cb9b6e9eab35e4b9ad Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Sun, 6 Sep 2015 20:22:44 +0100 Subject: [PATCH] minor change, add a lock we had at avn --- .../ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index f27a1221be..8f4e840c67 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -816,8 +816,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api public LSL_Float llFrand(double mag) { m_host.AddScriptLPS(1); - - return Util.RandomClass.NextDouble() * mag; + lock (Util.RandomClass) + { + return Util.RandomClass.NextDouble() * mag; + } } public LSL_Integer llFloor(double f)