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

Function math_randomseed

third-party/lua-5.2.4/src/lmathlib.c:226–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224
225
226static int math_randomseed (lua_State *L) {
227 srand(luaL_checkunsigned(L, 1));
228 (void)rand(); /* discard first value to avoid undesirable correlations */
229 return 0;
230}
231
232
233static const luaL_Reg mathlib[] = {

Callers

nothing calls this directly

Calls 1

luaL_checkunsignedFunction · 0.85

Tested by

no test coverage detected