MCPcopy Create free account
hub / github.com/NetHack/NetHack / sys_random_seed

Function sys_random_seed

sys/msdos/msdos.c:525–534  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

523}
524
525unsigned long
526sys_random_seed(void)
527{
528 unsigned long ourseed = 0UL;
529 time_t datetime = 0;
530
531 (void) time(&datetime);
532 ourseed = (unsigned long) datetime;
533 return ourseed;
534}
535
536#endif /* MSDOS */

Callers 1

init_randomFunction · 0.50

Calls 1

timeFunction · 0.85

Tested by

no test coverage detected