aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>2003-02-11 02:09:05 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>2003-02-11 02:09:05 +0000
commit0f7747869462ef0ac5c7617eea530f47bdb992ae (patch)
tree436ab143ce4766bb048a99a6760e3a7c96cf503d /usr.sbin
parentbd344e96cf3883f99e48893fd40e44a116399009 (diff)
Notes
Diffstat (limited to 'usr.sbin')
-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 98e4647d7484f..ee577eb0fe592 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);