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

Function reseed_random

src/rnd.c:288–295  ·  view source on GitHub ↗

Reshuffles the random number generator. */

Source from the content-addressed store, hash-verified

286
287/* Reshuffles the random number generator. */
288void
289reseed_random(int (*fn)(int))
290{
291 /* only reseed if we are certain that the seed generation is unguessable
292 * by the players. */
293 if (has_strong_rngseed)
294 init_random(fn);
295}
296
297/* randomize the given list of numbers 0 <= i < count */
298void

Callers 2

goto_levelFunction · 0.85
mklevFunction · 0.85

Calls 1

init_randomFunction · 0.85

Tested by

no test coverage detected