aboutsummaryrefslogtreecommitdiff
path: root/src/reg.c
diff options
context:
space:
mode:
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);