summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorThorsten Lockert <tholo@cvs.openbsd.org>2004-06-21 17:21:00 +0000
committerThorsten Lockert <tholo@cvs.openbsd.org>2004-06-21 17:21:00 +0000
commita3660022a0c902fed2c6f55da241879c45acb545 (patch)
tree30d96dc19ae7122106db70e0c622eec774b8b430 /sys
parent3aa1d2ac37c8607fb145fe046598cba9653cc87e (diff)
Don't use time for random starting value... "love it" deraadt@
Diffstat (limited to 'sys')
-rw-r--r--sys/net/if_arcsubr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_arcsubr.c b/sys/net/if_arcsubr.c
index e9d40ca6fd2..ff823f8dfb9 100644
--- a/sys/net/if_arcsubr.c
+++ b/sys/net/if_arcsubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_arcsubr.c,v 1.19 2004/04/17 00:09:01 henning Exp $ */
+/* $OpenBSD: if_arcsubr.c,v 1.20 2004/06/21 17:20:59 tholo Exp $ */
/* $NetBSD: if_arcsubr.c,v 1.8 1996/05/07 02:40:29 thorpej Exp $ */
/*
@@ -549,7 +549,7 @@ arc_ifattach(ifp)
ifp->if_mtu = (ifp->if_flags & IFF_LINK0 ? arc_phdsmtu : ARCMTU);
ac = (struct arccom *)ifp;
- ac->ac_seqid = (time.tv_sec) & 0xFFFF; /* try to make seqid unique */
+ ac->ac_seqid = arc4random() & 0xFFFF; /* try to make seqid unique */
if (ac->ac_anaddr == 0) {
/* XXX this message isn't entirely clear, to me -- cgd */
log(LOG_ERR,"%s: link address 0 reserved for broadcasts. Please change it and ifconfig %s down up\n",