[Fix] Hack fix to Lua's makeseed() API call.
-- Got @KonoM working on a better fix.
This commit is contained in:
parent
c0cc0a9346
commit
1f59163010
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user