Use srandomdev() for FreeBSD
This commit is contained in:
parent
c6c9094f0c
commit
9328833aac
@ -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