Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
525
unsigned long
526
sys_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_random
Function · 0.50
Calls
1
time
Function · 0.85
Tested by
no test coverage detected