diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-02-05 15:48:28 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-02-05 15:48:28 +0000 |
commit | dcf1564410bf65a4cd4a25a9fde1c734a56da5c7 (patch) | |
tree | fb12cd1f1d1be670d711e6254e8518485f6ef304 /sys/netinet/tcp_input.c | |
parent | 08d997804215097a2147a9f4bbe81f8cf62516d7 (diff) |
use arc4random()
Diffstat (limited to 'sys/netinet/tcp_input.c')
-rw-r--r-- | sys/netinet/tcp_input.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index e0d20e0c6f1..ea37f2be8d5 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_input.c,v 1.8 1996/09/25 11:39:56 niklas Exp $ */ +/* $OpenBSD: tcp_input.c,v 1.9 1997/02/05 15:48:24 deraadt Exp $ */ /* $NetBSD: tcp_input.c,v 1.23 1996/02/13 23:43:44 christos Exp $ */ /* @@ -61,6 +61,7 @@ #include <netinet/tcp_var.h> #include <netinet/tcpip.h> #include <netinet/tcp_debug.h> +#include <dev/rndvar.h> #include <machine/stdarg.h> @@ -676,7 +677,7 @@ findpcb: #ifdef TCP_COMPAT_42 tcp_iss += TCP_ISSINCR/2; #else /* TCP_COMPAT_42 */ - tcp_iss += random() % (TCP_ISSINCR / 2) + 1; + tcp_iss += arc4random() % (TCP_ISSINCR / 2) + 1; #endif /* !TCP_COMPAT_42 */ tp->irs = ti->ti_seq; tcp_sendseqinit(tp); |