Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet use arc4random() on tcp iss generation
details: https://anonhg.NetBSD.org/src/rev/e747abcf577c
branches: trunk
changeset: 531878:e747abcf577c
user: itojun <itojun%NetBSD.org@localhost>
date: Tue May 28 10:17:27 2002 +0000
description:
use arc4random() on tcp iss generation
diffstat:
sys/netinet/tcp_subr.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 6f0b05234a4f -r e747abcf577c sys/netinet/tcp_subr.c
--- a/sys/netinet/tcp_subr.c Tue May 28 10:11:49 2002 +0000
+++ b/sys/netinet/tcp_subr.c Tue May 28 10:17:27 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tcp_subr.c,v 1.128 2002/05/26 16:05:44 itojun Exp $ */
+/* $NetBSD: tcp_subr.c,v 1.129 2002/05/28 10:17:27 itojun Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -102,7 +102,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tcp_subr.c,v 1.128 2002/05/26 16:05:44 itojun Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tcp_subr.c,v 1.129 2002/05/28 10:17:27 itojun Exp $");
#include "opt_inet.h"
#include "opt_ipsec.h"
@@ -2002,7 +2002,7 @@
#if NRND > 0
rnd_extract_data(&tcp_iss, sizeof(tcp_iss), RND_EXTRACT_ANY);
#else
- tcp_iss = random();
+ tcp_iss = arc4random();
#endif
/*
Home |
Main Index |
Thread Index |
Old Index