diff --git a/lib/lua/lstate.c b/lib/lua/lstate.c index 3f79898..3c00c28 100644 --- a/lib/lua/lstate.c +++ b/lib/lua/lstate.c @@ -88,7 +88,7 @@ typedef struct LG { static unsigned int makeseed (lua_State *L) { char buff[4 * sizeof(size_t)]; - unsigned int h = rand(); + unsigned int h = luai_makeseed(); int p = 0; addbuff(buff, p, L); /* heap variable */ addbuff(buff, p, &h); /* local variable */ diff --git a/src/main.c b/src/main.c index 4076c93..bae8d75 100644 --- a/src/main.c +++ b/src/main.c @@ -33,7 +33,7 @@ #define FONT_SIZE 12 static int quit = 0; // Primary loop. -unsigned int time = 0; // Calculate FPS and movement. +static unsigned int time = 0; // Calculate FPS and movement. static char version[VERSION_LEN]; // Just some default crap.