summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_subr.c
diff options
context:
space:
mode:
authordjm <djm@openbsd.org>2007-09-18 22:02:18 +0000
committerdjm <djm@openbsd.org>2007-09-18 22:02:18 +0000
commit79f3cbe6207a0f0ab8eeef4fcb6e898a1928d9b4 (patch)
tree1742df85c197e60d571b82355a085d1cb8d45534 /sys/netinet/tcp_subr.c
parentgc an unused line (diff)
downloadwireguard-openbsd-79f3cbe6207a0f0ab8eeef4fcb6e898a1928d9b4.tar.xz
wireguard-openbsd-79f3cbe6207a0f0ab8eeef4fcb6e898a1928d9b4.zip
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;