Use srandomdev() for FreeBSD
This commit is contained in:
parent
c6c9094f0c
commit
9328833aac
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=110668
@ -221,7 +221,11 @@ main(argc, argv)
|
||||
rtadvd_timer_init();
|
||||
|
||||
/* random value initialization */
|
||||
#ifdef __FreeBSD__
|
||||
srandomdev();
|
||||
#else
|
||||
srandom((u_long)time(NULL));
|
||||
#endif
|
||||
|
||||
/* get iflist block from kernel */
|
||||
init_iflist();
|
||||
|
Loading…
Reference in New Issue
Block a user