diff options
| author | ame <[email protected]> | 2026-06-29 05:48:58 -0500 |
|---|---|---|
| committer | ame <[email protected]> | 2026-06-29 05:48:58 -0500 |
| commit | 727d3541a122795b405208242e6fdf7f8b5add07 (patch) | |
| tree | db049f349f669d37c6bf7d7feea18481a4f8b2d9 /src/reg.c | |
| parent | 4ecdd3c18ccc5d3bcaa82ed720bf28443aa0ca9d (diff) | |
:detatch fix and math.random
Diffstat (limited to 'src/reg.c')
| -rw-r--r-- | src/reg.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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);
|
