diff options
author | UbitUmarov | 2015-09-06 20:22:44 +0100 |
---|---|---|
committer | UbitUmarov | 2015-09-06 20:22:44 +0100 |
commit | af440162f7a31789af1251cb9b6e9eab35e4b9ad (patch) | |
tree | cf4cb16dd02840270303182572410f28afc6b037 | |
parent | fix the missing initialization of the folish ProcessUnackedSends option (diff) | |
download | opensim-SC_OLD-af440162f7a31789af1251cb9b6e9eab35e4b9ad.zip opensim-SC_OLD-af440162f7a31789af1251cb9b6e9eab35e4b9ad.tar.gz opensim-SC_OLD-af440162f7a31789af1251cb9b6e9eab35e4b9ad.tar.bz2 opensim-SC_OLD-af440162f7a31789af1251cb9b6e9eab35e4b9ad.tar.xz |
minor change, add a lock we had at avn
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 6 |
1 files 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 f27a122..8f4e840 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 | |||
816 | public LSL_Float llFrand(double mag) | 816 | public LSL_Float llFrand(double mag) |
817 | { | 817 | { |
818 | m_host.AddScriptLPS(1); | 818 | m_host.AddScriptLPS(1); |
819 | 819 | lock (Util.RandomClass) | |
820 | return Util.RandomClass.NextDouble() * mag; | 820 | { |
821 | return Util.RandomClass.NextDouble() * mag; | ||
822 | } | ||
821 | } | 823 | } |
822 | 824 | ||
823 | public LSL_Integer llFloor(double f) | 825 | public LSL_Integer llFloor(double f) |