Don't mix in data just to stir the rnd pool. Extracting data will do that,

any network packets received might, too, so this is already taken care of.
This commit is contained in:
explorer 1999-02-28 13:41:24 +00:00
parent f41d893cec
commit cff4c9630b
1 changed files with 2 additions and 12 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: tcp_subr.c,v 1.65 1999/01/26 08:28:50 thorpej Exp $ */
/* $NetBSD: tcp_subr.c,v 1.66 1999/02/28 13:41:24 explorer Exp $ */
/*-
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@ -887,17 +887,7 @@ tcp_new_iss(tp, len, addin)
tcp_seq tcp_iss;
/*
* add randomness about this connection, but do not estimate
* entropy from the timing, since the physical device driver would
* have done that for us.
*/
#if NRND > 0
if (tp != NULL)
rnd_add_data(NULL, tp, len, 0);
#endif
/*
* randomize.
* Randomize.
*/
#if NRND > 0
rnd_extract_data(&tcp_iss, sizeof(tcp_iss), RND_EXTRACT_ANY);