Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Jan 2012 11:30:15 +0000
From:      Mark Murray <markm@FreeBSD.org>
To:        Andrey Chernov <ache@FreeBSD.ORG>
Cc:        src-committers@FreeBSD.ORG, John Baldwin <jhb@FreeBSD.ORG>, svn-src-all@FreeBSD.ORG, svn-src-head@FreeBSD.ORG, David Schultz <das@FreeBSD.ORG>, Mark Murray <markm@FreeBSD.ORG>
Subject:   Re: svn commit: r230230 - head/sys/dev/random
Message-ID:  <E1RrpR9-0006D5-To@groundzero.grondar.org>
In-Reply-To: <20120129125738.GA26520@vniz.net>
References:  <E1Rny2A-000C3x-O6@groundzero.grondar.org> <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> <20120129125738.GA26520@vniz.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Andrey Chernov writes:
>  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.
> > 
> > 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 
> > shorter than previous ones.
> 
> Well, I almost forget about my special case: I have personal prohibition 
> from @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 
> thread, please? 

Sure; I'll do it. Please give me your test code/cases.

> I don't insist of atomics in this sutuation, so you can peek any version 
> you like.

I'll need to clearly see what works.

M
--
Mark R V Murray
Cert APS(Open) Dip Phys(Open) BSc Open(Open) BSc(Hons)(Open)
Pi: 132511160




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1RrpR9-0006D5-To>