ports/databases/redis/patches/patch-deps_lua_src_lmathlib_c

15 lines
355 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
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;
}