From 130542a898b52bb6235846ade3e165e5a9afa306 Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Wed, 14 Mar 2001 19:21:34 +0000 Subject: provide a random start for tcp timestamps; niels@ ok --- sys/netinet/tcp_subr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/netinet/tcp_subr.c') diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c index c3c8c678c01..02b24889d21 100644 --- a/sys/netinet/tcp_subr.c +++ b/sys/netinet/tcp_subr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_subr.c,v 1.39 2001/02/16 16:00:54 itojun Exp $ */ +/* $OpenBSD: tcp_subr.c,v 1.40 2001/03/14 19:21:33 mickey Exp $ */ /* $NetBSD: tcp_subr.c,v 1.22 1996/02/13 23:44:00 christos Exp $ */ /* @@ -141,6 +141,7 @@ tcp_init() tcp_iss = 1; /* wrong */ #endif /* TCP_COMPAT_42 */ in_pcbinit(&tcbtable, tcbhashsize); + tcp_now = arc4random() / 2; #ifdef INET6 /* -- cgit v1.2.3