Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Sep 2008 19:42:18 +0000
From:      "Poul-Henning Kamp" <phk@phk.freebsd.dk>
To:        Andrey Chernov <ache@nagual.pp.ru>
Cc:        Daniel Eischen <deischen@freebsd.org>, Max Laier <max@love2party.net>, freebsd-current@freebsd.org
Subject:   Re: Is fork() hook ever possible? 
Message-ID:  <74567.1221594138@critter.freebsd.dk>
In-Reply-To: Your message of "Tue, 16 Sep 2008 23:33:47 %2B0400." <20080916193347.GA43665@nagual.pp.ru> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <20080916193347.GA43665@nagual.pp.ru>, Andrey Chernov writes:

>That was my original idea - to set the flag variable (not a new inteface) 
>in the fork() wrapper which arc4random() will check later. I'll think 
>about, what is better: getpid() speedup looks like more general solution 
>for all similar cases while the flag will be for arc4random() only.

Not to be devils advocate here, but isn't the process pid about the
worst seed you can use for a random generator, considering that it
is publically visible ?

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.



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