Re: Is fork() hook ever possible?

From: Poul-Henning Kamp <phk_at_phk.freebsd.dk>
Date: Tue, 16 Sep 2008 19:42:18 +0000
In message <20080916193347.GA43665_at_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_at_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.
Received on Tue Sep 16 2008 - 18:11:21 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:35 UTC