Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NetHack/NetHack
/ whichrng
Function
whichrng
src/rnd.c:31–40 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
29
};
30
31
staticfn int
32
whichrng(int (*fn)(int))
33
{
34
int i;
35
36
for (i = 0; i < SIZE(rnglist); ++i)
37
if (rnglist[i].fn == fn)
38
return i;
39
return -1;
40
}
41
42
void
43
init_isaac64(unsigned long seed, int (*fn)(int))
Callers
1
init_isaac64
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected