summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorThorsten Lockert <tholo@cvs.openbsd.org>2004-06-21 18:02:21 +0000
committerThorsten Lockert <tholo@cvs.openbsd.org>2004-06-21 18:02:21 +0000
commit4bec4aa27bbc7fe2179f868d53624a38c3f8c347 (patch)
tree047b139a504c609f94a39ee99c2c197b86d3deb2 /sys
parent0804ed0271feefa1aaa278d90929f6ffa83a2707 (diff)
Use arc4random() instead of time-based node start id
Diffstat (limited to 'sys')
-rw-r--r--sys/netatalk/at_control.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netatalk/at_control.c b/sys/netatalk/at_control.c
index d703e4b8f7c..299826102cb 100644
--- a/sys/netatalk/at_control.c
+++ b/sys/netatalk/at_control.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: at_control.c,v 1.6 2003/11/07 10:16:46 jmc Exp $ */
+/* $OpenBSD: at_control.c,v 1.7 2004/06/21 18:02:20 tholo Exp $ */
/*
* Copyright (c) 1990,1991 Regents of The University of Michigan.
@@ -435,7 +435,7 @@ at_ifinit( ifp, aa, sat )
break;
}
/* reset node for next network */
- AA_SAT( aa )->sat_addr.s_node = time.tv_sec;
+ AA_SAT( aa )->sat_addr.s_node = arc4random();
}
if ( aa->aa_flags & AFA_PROBING ) {