summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/net/if_ethersubr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c
index 96f9fd29b3e..dbd508273b5 100644
--- a/sys/net/if_ethersubr.c
+++ b/sys/net/if_ethersubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ethersubr.c,v 1.55 2001/08/19 15:28:24 jason Exp $ */
+/* $OpenBSD: if_ethersubr.c,v 1.56 2001/09/20 16:07:21 peter Exp $ */
/* $NetBSD: if_ethersubr.c,v 1.19 1996/05/07 02:40:30 thorpej Exp $ */
/*
@@ -1046,7 +1046,7 @@ ether_ifattach(ifp)
((struct arpcom *)ifp)->ac_enaddr[2] = 0xe1;
((struct arpcom *)ifp)->ac_enaddr[3] = 0xba;
((struct arpcom *)ifp)->ac_enaddr[4] = 0xd0;
- ((struct arpcom *)ifp)->ac_enaddr[5] = (u_char)arc4random();
+ ((struct arpcom *)ifp)->ac_enaddr[5] = (u_char)random() & 0xff;
}
ifp->if_type = IFT_ETHER;