From owner-svn-src-head@FreeBSD.ORG Sun Jan 29 12:57:42 2012 Return-Path: Delivered-To: svn-src-head@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9ADCE1065676; Sun, 29 Jan 2012 12:57:42 +0000 (UTC) (envelope-from ache@vniz.net) Received: from vniz.net (vniz.net [194.87.13.69]) by mx1.freebsd.org (Postfix) with ESMTP id EC48D8FC18; Sun, 29 Jan 2012 12:57:41 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by vniz.net (8.14.5/8.14.5) with ESMTP id q0TCvdpp026649; Sun, 29 Jan 2012 16:57:39 +0400 (MSK) (envelope-from ache@vniz.net) Received: (from ache@localhost) by localhost (8.14.5/8.14.5/Submit) id q0TCvdVI026648; Sun, 29 Jan 2012 16:57:39 +0400 (MSK) (envelope-from ache) Date: Sun, 29 Jan 2012 16:57:38 +0400 From: Andrey Chernov To: David Schultz , John Baldwin , Mark Murray , src-committers@FreeBSD.ORG, svn-src-all@FreeBSD.ORG, svn-src-head@FreeBSD.ORG Message-ID: <20120129125738.GA26520@vniz.net> Mail-Followup-To: Andrey Chernov , David Schultz , John Baldwin , Mark Murray , src-committers@FreeBSD.ORG, svn-src-all@FreeBSD.ORG, svn-src-head@FreeBSD.ORG References: <20120126143819.GA88677@vniz.net> <20120126155626.GA92229@vniz.net> <201201261132.38320.jhb@freebsd.org> <20120126165521.GA92622@vniz.net> <20120126175243.GA19199@zim.MIT.EDU> <20120126181340.GA93157@vniz.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20120126181340.GA93157@vniz.net> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Subject: Re: svn commit: r230230 - head/sys/dev/random X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Jan 2012 12:57:42 -0000 On Thu, Jan 26, 2012 at 10:13:41PM +0400, Andrey Chernov wrote: > On Thu, Jan 26, 2012 at 12:52:43PM -0500, David Schultz wrote: > > Why complicate things with atomics at all? A race might result in > > arc4random(9) being seeded multiple times, but that's harmless. >=20 > Multiply seeding in line is harmless, just waste of time and resources. > Other case is one missing seeding when variable is set concurrently with > its read. I see no complication using atomic. Latest version is even=20 > shorter than previous ones. Well, I almost forget about my special case: I have personal prohibition=20 =66rom @secteam (5 years old already) to commit anything to all RNG areas. So, the question is: could anyone of you commit some version from this=20 thread, please?=20 I don't insist of atomics in this sutuation, so you can peek any version=20 you like. --=20 http://ache.vniz.net/