mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04: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
2 changed files with 4 additions and 1 deletions
|
|
@ -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 a new issue