| 224 | |
| 225 | |
| 226 | static 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 | |
| 233 | static const luaL_Reg mathlib[] = { |
nothing calls this directly
no test coverage detected