From 727d3541a122795b405208242e6fdf7f8b5add07 Mon Sep 17 00:00:00 2001 From: ame Date: Mon, 29 Jun 2026 05:48:58 -0500 Subject: :detatch fix and math.random --- src/reg.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/reg.c') diff --git a/src/reg.c b/src/reg.c index b90e03d..c57cdf7 100644 --- a/src/reg.c +++ b/src/reg.c @@ -8,6 +8,7 @@ #include "test.h" #include "config.h" #include "lullaby.h" +#include #define open_common(name, config)\ int luaopen_lullaby_##name (lua_State* L){\ @@ -38,6 +39,7 @@ lua_settable(L, T); int luaopen_lullaby(lua_State* L) { + srand(time(NULL)); lua_newtable(L); int top = lua_gettop(L); -- cgit v1.2.3