diff options
author | 2001-09-10 14:49:45 +0000 | |
---|---|---|
committer | 2001-09-10 14:49:45 +0000 | |
commit | 478f6a9584ca97a597964ca49f27da4449a2a229 (patch) | |
tree | ed0da9ab6827bef86f9eef4b51be63edfc9ef532 | |
parent | Remove some unused global variables. (diff) | |
download | wireguard-openbsd-478f6a9584ca97a597964ca49f27da4449a2a229.tar.xz wireguard-openbsd-478f6a9584ca97a597964ca49f27da4449a2a229.zip |
use arc4random for iv as art@ suggested
-rw-r--r-- | sys/dev/ic/awi_wep.c | 4 |
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 |