minor change, add a lock we had at avn

avinationmerge
UbitUmarov 2015-09-06 20:22:44 +01:00
parent d9fafd9603
commit af440162f7
1 changed files with 4 additions and 2 deletions

View File

@ -816,9 +816,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
public LSL_Float llFrand(double mag)
{
m_host.AddScriptLPS(1);
lock (Util.RandomClass)
{
return Util.RandomClass.NextDouble() * mag;
}
}
public LSL_Integer llFloor(double f)
{