summaryrefslogtreecommitdiffstats
path: root/usr.sbin/route6d/route6d.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/route6d/route6d.c')
-rw-r--r--usr.sbin/route6d/route6d.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/usr.sbin/route6d/route6d.c b/usr.sbin/route6d/route6d.c
index 98e4647..ee577eb 100644
--- a/usr.sbin/route6d/route6d.c
+++ b/usr.sbin/route6d/route6d.c
@@ -376,6 +376,11 @@ main(argc, argv)
fatal("No loopback found");
/*NOTREACHED*/
}
+#ifdef __FreeBSD__
+ sranddev();
+#else
+ srand((unsigned)(time(NULL)^(pid<<16)));
+#endif
loopifindex = loopifcp->ifc_index;
for (ifcp = ifc; ifcp; ifcp = ifcp->ifc_next)
ifrt(ifcp, 0);
OpenPOWER on IntegriCloud