Fix bug in sandbox's Math.random()
This commit is contained in:
1 parent
843d183045
commit
00aacd212b
1 file changed
+1
-1
+1
-1
@@ -54,7 +54,7 @@ class SandboxDate {
|
|||||||
|
|
||||||
function random() {
|
function random() {
|
||||||
if (!state.rng)
|
if (!state.rng)
|
||||||
state.rng = seedrandom(sessionContext.timestamp);
|
state.rng = seedrandom(state.sessionContext.timestamp);
|
||||||
|
|
||||||
return state.rng();
|
return state.rng();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user