ports/lang/lua/5.1/patches/patch-src_lmathlib_c

12 lines
296 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
--- src/lmathlib.c.orig Wed Dec 10 00:42:41 2014
+++ src/lmathlib.c Wed Dec 10 00:42:46 2014
@@ -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;
}