summaryrefslogtreecommitdiff
path: root/sys/netinet/tcp_subr.c
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2007-09-18 22:02:19 +0000
committerDamien Miller <djm@cvs.openbsd.org>2007-09-18 22:02:19 +0000
commit60a50c17457081b214d0e67ae4d197348e65b44b (patch)
tree6147ed9a892b427eadc4c9a9a1f55dece2c774a0 /sys/netinet/tcp_subr.c
parent3f52b824168b8743c53ff47ac2278be7ed638c5e (diff)
arc4random_bytes() is the preferred interface for generating nonces;
"looks ok" markus@
Diffstat (limited to 'sys/netinet/tcp_subr.c')
-rw-r--r--sys/netinet/tcp_subr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c
index 7723d0b6170..e5048bfb54a 100644
--- a/sys/netinet/tcp_subr.c
+++ b/sys/netinet/tcp_subr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_subr.c,v 1.99 2007/09/01 18:49:28 henning Exp $ */
+/* $OpenBSD: tcp_subr.c,v 1.100 2007/09/18 22:02:18 djm Exp $ */
/* $NetBSD: tcp_subr.c,v 1.22 1996/02/13 23:44:00 christos Exp $ */
/*
@@ -1218,7 +1218,7 @@ tcp_rndiss_encrypt(val)
void
tcp_rndiss_init()
{
- get_random_bytes(tcp_rndiss_sbox, sizeof(tcp_rndiss_sbox));
+ arc4random_bytes(tcp_rndiss_sbox, sizeof(tcp_rndiss_sbox));
tcp_rndiss_reseed = time_second + TCP_RNDISS_OUT;
tcp_rndiss_msb = tcp_rndiss_msb == 0x8000 ? 0 : 0x8000;