diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 7d8821c..991107e 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -544,10 +544,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
544 | public LSL_Float llFrand(double mag) | 544 | public LSL_Float llFrand(double mag) |
545 | { | 545 | { |
546 | m_host.AddScriptLPS(1); | 546 | m_host.AddScriptLPS(1); |
547 | lock (Util.RandomClass) | 547 | |
548 | { | 548 | return Util.RandomClass.NextDouble() * mag; |
549 | return Util.RandomClass.NextDouble() * mag; | ||
550 | } | ||
551 | } | 549 | } |
552 | 550 | ||
553 | public LSL_Integer llFloor(double f) | 551 | public LSL_Integer llFloor(double f) |