[Fix] time(NULL) segfaulting stuff.
This commit is contained in:
parent
1f59163010
commit
61f1069542
@ -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 */
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user