[Fix] Hack fix to Lua's makeseed() API call.

-- Got @KonoM working on a better fix.
This commit is contained in:
Allanis 2013-02-16 20:37:44 +00:00
parent c0cc0a9346
commit 1f59163010

View File

@ -88,7 +88,7 @@ typedef struct LG {
static unsigned int makeseed (lua_State *L) {
char buff[4 * sizeof(size_t)];
unsigned int h = luai_makeseed();
unsigned int h = rand();
int p = 0;
addbuff(buff, p, L); /* heap variable */
addbuff(buff, p, &h); /* local variable */