14 lines
355 B
Text
14 lines
355 B
Text
Lua's math_randomseed() is documented to be deterministic.
|
|
|
|
Index: deps/lua/src/lmathlib.c
|
|
--- deps/lua/src/lmathlib.c.orig
|
|
+++ deps/lua/src/lmathlib.c
|
|
@@ -207,7 +207,7 @@ static int math_random (lua_State *L) {
|
|
|
|
|
|
static int math_randomseed (lua_State *L) {
|
|
- srand(luaL_checkint(L, 1));
|
|
+ srand_deterministic(luaL_checkint(L, 1));
|
|
return 0;
|
|
}
|
|
|