summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2001-09-10 14:49:46 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2001-09-10 14:49:46 +0000
commit19759b0b2cdedc86eb03f2f8b3f2a9ad9ef8fd02 (patch)
tree678e67e01d6279da3ca0d8e7636e4e8b0ef12e56
parentf8c35c2f20e845b1bfae5f7907ef93d0cb601ab8 (diff)
use arc4random for iv as art@ suggested
-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