summaryrefslogtreecommitdiff
path: root/sys/dev/ic/awi_wep.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/ic/awi_wep.c')
-rw-r--r--sys/dev/ic/awi_wep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/awi_wep.c b/sys/dev/ic/awi_wep.c
index 4a2881960f3..2dfe228141e 100644
--- a/sys/dev/ic/awi_wep.c
+++ b/sys/dev/ic/awi_wep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: awi_wep.c,v 1.3 2001/07/04 09:02:58 niklas Exp $ */
+/* $OpenBSD: awi_wep.c,v 1.4 2001/09/10 14:49:45 mickey Exp $ */
/* $NetBSD: awi_wep.c,v 1.2 2000/07/04 14:47:58 onoe Exp $ */
/*
@@ -353,7 +353,7 @@ awi_wep_encrypt(sc, m0, txflag)
kid = sc->sc_wep_defkid;
wh = mtod(n, struct ieee80211_frame *);
wh->i_fc[1] |= IEEE80211_FC1_WEP;
- iv = random();
+ iv = arc4random();
/*
* store IV, byte order is not the matter since it's random.
* assuming IEEE80211_WEP_IVLEN is 3