$OpenBSD: patch-deps_lua_src_lmathlib_c,v 1.1 2021/03/16 21:18:38 tb Exp $

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;
 }
 
