MCPcopy Index your code
hub / github.com/NetHack/NetHack / init_random

Function init_random

src/rnd.c:281–285  ·  view source on GitHub ↗

* Initializes the random number generator. * Only call once. */

Source from the content-addressed store, hash-verified

279 * Only call once.
280 */
281void
282init_random(int (*fn)(int))
283{
284 set_random(sys_random_seed(), fn);
285}
286
287/* Reshuffles the random number generator. */
288void

Callers 2

initoptions_initFunction · 0.85
reseed_randomFunction · 0.85

Calls 2

set_randomFunction · 0.85
sys_random_seedFunction · 0.50

Tested by

no test coverage detected