diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2005-08-02 10:51:48 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2005-08-02 10:51:48 +0000 |
commit | e231ee44134750064b3c4f5dac43461e2be5359a (patch) | |
tree | c41ea12727fef858c99c0dcbb6a9c3195e2caf7d /sys | |
parent | 0f4d67a8411b1bba39460483c8a39374d5a2e5b2 (diff) |
use arc4random for random packet padding (largely acedemic because it is
deprecated anyway); ok hshoexer@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netinet/ip_esp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ip_esp.c b/sys/netinet/ip_esp.c index f374aba0d40..494f9e37b9e 100644 --- a/sys/netinet/ip_esp.c +++ b/sys/netinet/ip_esp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_esp.c,v 1.93 2005/07/31 03:52:19 pascoe Exp $ */ +/* $OpenBSD: ip_esp.c,v 1.94 2005/08/02 10:51:47 djm Exp $ */ /* * The authors of this code are John Ioannidis (ji@tla.org), * Angelos D. Keromytis (kermit@csd.uch.gr) and @@ -898,7 +898,7 @@ esp_output(struct mbuf *m, struct tdb *tdb, struct mbuf **mp, int skip, for (ilen = 0; ilen < padding - 2; ilen++) pad[ilen] = ilen + 1; else - get_random_bytes((void *) pad, padding - 2); + arc4random_bytes((void *) pad, padding - 2); /* Fix padding length and Next Protocol in padding itself. */ pad[padding - 2] = padding - 2; |