MCPcopy 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
31staticfn int
32whichrng(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
42void
43init_isaac64(unsigned long seed, int (*fn)(int))

Callers 1

init_isaac64Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected