summaryrefslogtreecommitdiff
path: root/sys/netinet/tcp_subr.c
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2001-03-14 19:21:34 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2001-03-14 19:21:34 +0000
commit130542a898b52bb6235846ade3e165e5a9afa306 (patch)
tree2346d67107e899e9845eaa582dab6069a27fbe44 /sys/netinet/tcp_subr.c
parente6d83b9d845a212300fe3c3fbb29c9dc8af54884 (diff)
provide a random start for tcp timestamps; niels@ ok
Diffstat (limited to 'sys/netinet/tcp_subr.c')
-rw-r--r--sys/netinet/tcp_subr.c3
1 files changed, 2 insertions, 1 deletions
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
/*