mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-28 16:43:09 +00:00
Comment out srandom():
1) Already called in init_main.c:proc0_post() 2) Seed is bad
This commit is contained in:
parent
a9263b6214
commit
24a701b269
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=110403
@ -4267,7 +4267,9 @@ key_timehandler(void)
|
||||
static void
|
||||
key_srandom()
|
||||
{
|
||||
#if 0 /* Already called in kern/init_main.c:proc0_post() */
|
||||
srandom(time_second);
|
||||
#endif
|
||||
}
|
||||
|
||||
u_long
|
||||
|
@ -4439,12 +4439,13 @@ key_timehandler(void)
|
||||
static void
|
||||
key_srandom()
|
||||
{
|
||||
#if 0 /* Already called in kern/init_main.c:proc0_post() */
|
||||
struct timeval tv;
|
||||
|
||||
microtime(&tv);
|
||||
|
||||
srandom(tv.tv_usec);
|
||||
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user