diff --git a/usr.sbin/rtadvd/rtadvd.c b/usr.sbin/rtadvd/rtadvd.c index 9e8c81eaaf77..bc9f9b95691b 100644 --- a/usr.sbin/rtadvd/rtadvd.c +++ b/usr.sbin/rtadvd/rtadvd.c @@ -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();