From owner-svn-src-all@freebsd.org Mon May 2 14:35:58 2016 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9532EB289C6; Mon, 2 May 2016 14:35:58 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4E7081005; Mon, 2 May 2016 14:35:58 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u42EZvdJ020518; Mon, 2 May 2016 14:35:57 GMT (envelope-from pfg@FreeBSD.org) Received: (from pfg@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u42EZv01020516; Mon, 2 May 2016 14:35:57 GMT (envelope-from pfg@FreeBSD.org) Message-Id: <201605021435.u42EZv01020516@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pfg set sender to pfg@FreeBSD.org using -f From: "Pedro F. Giffuni" Date: Mon, 2 May 2016 14:35:57 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r298923 - head/sys/dev/random X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 May 2016 14:35:58 -0000 Author: pfg Date: Mon May 2 14:35:57 2016 New Revision: 298923 URL: https://svnweb.freebsd.org/changeset/base/298923 Log: dev/random: minor spelling fixes in comments. No functional change. Reviewed by: markm Approved by: so Modified: head/sys/dev/random/fortuna.c head/sys/dev/random/yarrow.c Modified: head/sys/dev/random/fortuna.c ============================================================================== --- head/sys/dev/random/fortuna.c Mon May 2 13:18:17 2016 (r298922) +++ head/sys/dev/random/fortuna.c Mon May 2 14:35:57 2016 (r298923) @@ -250,7 +250,7 @@ random_fortuna_process_event(struct harv /*- * FS&K - Reseed() * This introduces new key material into the output generator. - * Additionaly it increments the output generator's counter + * Additionally it increments the output generator's counter * variable C. When C > 0, the output generator is seeded and * will deliver output. * The entropy_data buffer passed is a very specific size; the Modified: head/sys/dev/random/yarrow.c ============================================================================== --- head/sys/dev/random/yarrow.c Mon May 2 13:18:17 2016 (r298922) +++ head/sys/dev/random/yarrow.c Mon May 2 14:35:57 2016 (r298923) @@ -96,7 +96,7 @@ static struct yarrow_state { u_int ys_slowoverthresh; /* slow pool overthreshhold reseed count */ struct ys_pool { u_int ysp_source_bits[ENTROPYSOURCE]; /* estimated bits of entropy per source */ - u_int ysp_thresh; /* pool reseed threshhold */ + u_int ysp_thresh; /* pool reseed threshold */ struct randomdev_hash ysp_hash; /* accumulated entropy */ } ys_pool[RANDOM_YARROW_NPOOLS];/* pool[0] is fast, pool[1] is slow */ bool ys_seeded; @@ -240,8 +240,8 @@ random_yarrow_process_event(struct harve } } /* - * If enough slow sources are over threshhold, then slow reseed - * else if any fast source over threshhold, then fast reseed. + * If enough slow sources are over threshold, then slow reseed + * else if any fast source over threshold, then fast reseed. */ if (overthreshhold[RANDOM_YARROW_SLOW] >= yarrow_state.ys_slowoverthresh) random_yarrow_reseed_internal(RANDOM_YARROW_SLOW);