MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / makeseed

Function makeseed

third-party/lua-5.2.4/src/lstate.c:89–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87 memcpy(buff + p, &t, sizeof(t)); p += sizeof(t); }
88
89static unsigned int makeseed (lua_State *L) {
90 char buff[4 * sizeof(size_t)];
91 unsigned int h = luai_makeseed();
92 int p = 0;
93 addbuff(buff, p, L); /* heap variable */
94 addbuff(buff, p, &h); /* local variable */
95 addbuff(buff, p, luaO_nilobject); /* global variable */
96 addbuff(buff, p, &lua_newstate); /* public function */
97 lua_assert(p == sizeof(buff));
98 return luaS_hash(buff, p, h);
99}
100
101
102/*

Callers 1

lua_newstateFunction · 0.70

Calls 2

luaS_hashFunction · 0.70
luai_makeseedFunction · 0.50

Tested by

no test coverage detected