summaryrefslogtreecommitdiff
path: root/sys/netinet/tcp_seq.h
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2000-09-29 01:37:19 +0000
committerKris Kennaway <kris@FreeBSD.org>2000-09-29 01:37:19 +0000
commitbe515d91ad5712504fd074b5754f4c996fbdf00a (patch)
tree8c7144507815367f1a6aa64e3c90da96c2c42112 /sys/netinet/tcp_seq.h
parent5edc35721986d0a8711bf83b89d7cf1e73f81238 (diff)
Notes
Diffstat (limited to 'sys/netinet/tcp_seq.h')
-rw-r--r--sys/netinet/tcp_seq.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/tcp_seq.h b/sys/netinet/tcp_seq.h
index aeefb209f85a..49b714ac5633 100644
--- a/sys/netinet/tcp_seq.h
+++ b/sys/netinet/tcp_seq.h
@@ -91,7 +91,7 @@ extern tcp_cc tcp_ccgen; /* global connection count */
* number in the range [0-0x3ffff] that is hard to predict.
*/
#ifndef tcp_random18
-#define tcp_random18() ((random() >> 14) & 0x3ffff)
+#define tcp_random18() (arc4random() & 0x3ffff)
#endif
#define TCP_ISSINCR (122*1024 + tcp_random18())