mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
minor change, add a lock we had at avn
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user