aboutsummaryrefslogtreecommitdiff
path: root/src/reg.c
diff options
context:
space:
mode:
authorame <[email protected]>2026-06-29 05:48:58 -0500
committerame <[email protected]>2026-06-29 05:48:58 -0500
commit727d3541a122795b405208242e6fdf7f8b5add07 (patch)
treedb049f349f669d37c6bf7d7feea18481a4f8b2d9 /src/reg.c
parent4ecdd3c18ccc5d3bcaa82ed720bf28443aa0ca9d (diff)
:detatch fix and math.random
Diffstat (limited to 'src/reg.c')
-rw-r--r--src/reg.c2
1 files changed, 2 insertions, 0 deletions
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 <time.h>
#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);