From owner-cvs-all@FreeBSD.ORG Thu Aug 14 23:37:25 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 239D437B405 for ; Thu, 14 Aug 2003 23:37:25 -0700 (PDT) Received: from relay.pair.com (relay.pair.com [209.68.1.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 3136243F3F for ; Thu, 14 Aug 2003 23:37:23 -0700 (PDT) (envelope-from silby@silby.com) Received: (qmail 93124 invoked from network); 15 Aug 2003 06:37:21 -0000 Received: from niwun.pair.com (HELO localhost) (209.68.2.70) by relay.pair.com with SMTP; 15 Aug 2003 06:37:21 -0000 X-pair-Authenticated: 209.68.2.70 Date: Fri, 15 Aug 2003 01:36:33 -0500 (CDT) From: Mike Silbersack To: Mike Silbersack In-Reply-To: <200308150634.h7F6Ylxw022089@repoman.freebsd.org> Message-ID: <20030815013501.L1565@odysseus.silby.com> References: <200308150634.h7F6Ylxw022089@repoman.freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/libkern arc4random.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Aug 2003 06:37:25 -0000 On Thu, 14 Aug 2003, Mike Silbersack wrote: > silby 2003/08/14 23:34:47 PDT > > FreeBSD src repository > > Modified files: > sys/libkern arc4random.c > Log: > Lock down arc4random so it can be safely called w/o Giant. > > Minor code reorganization was required, but the only functional > change was that the first 1024 bytes of output are thrown out > after each reseed, rather than just the initial seed. > > Revision Changes Path > 1.12 +26 -17 src/sys/libkern/arc4random.c This doesn't use per-cpu randomness pools or anything cool, but I decided that easily verified locking was more important at this point. (And I doubt that it's a performance problem either way.) Mike "Silby" Silbersack