MCPcopy Create free account
hub / github.com/F-Stack/f-stack / makeseed

Function makeseed

freebsd/contrib/openzfs/module/lua/lstate.c:86–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

lua_newstateFunction · 0.85

Calls 1

luaS_hashFunction · 0.85

Tested by

no test coverage detected