minor change, add a lock we had at avn
parent
d9fafd9603
commit
af440162f7
|
@ -816,9 +816,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
public LSL_Float llFrand(double mag)
|
public LSL_Float llFrand(double mag)
|
||||||
{
|
{
|
||||||
m_host.AddScriptLPS(1);
|
m_host.AddScriptLPS(1);
|
||||||
|
lock (Util.RandomClass)
|
||||||
|
{
|
||||||
return Util.RandomClass.NextDouble() * mag;
|
return Util.RandomClass.NextDouble() * mag;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public LSL_Integer llFloor(double f)
|
public LSL_Integer llFloor(double f)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue