MCPcopy Create free account
hub / github.com/9chu/LuaSTGPlus / Sign

Method Sign

LuaSTGPlus/LuaWrapper.cpp:253–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

251 return 1;
252 }
253 static int Sign(lua_State* L)LNOEXCEPT
254 {
255 fcyRandomWELL512* p = static_cast<fcyRandomWELL512*>(luaL_checkudata(L, 1, TYPENAME_RANDGEN));
256 lua_pushinteger(L, p->GetRandUInt(1) * 2 - 1);
257 return 1;
258 }
259 static int Meta_ToString(lua_State* L)LNOEXCEPT
260 {
261 fcyRandomWELL512* p = static_cast<fcyRandomWELL512*>(luaL_checkudata(L, 1, TYPENAME_RANDGEN));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected