summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/rtadvd/rtadvd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.sbin/rtadvd/rtadvd.c b/usr.sbin/rtadvd/rtadvd.c
index 9e8c81e..bc9f9b9 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();
OpenPOWER on IntegriCloud