aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs6
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)