MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / makeseed

Function makeseed

src/Chain/libraries/glua/lstate.cpp:84–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

lua_newstateFunction · 0.85

Calls 1

luaS_hashFunction · 0.85

Tested by

no test coverage detected