Re: On /dev/random devices

From: Benjamin Goldberg (goldbb2@earthlink.net)
Date: 04/04/03


From: Benjamin Goldberg <goldbb2@earthlink.net>
Date: Thu, 03 Apr 2003 23:56:46 -0500


NuncEstBibendum wrote:
>
> On Wed, 02 Apr 2003 12:42:11 -0800, Benjamin Goldberg wrote:
>
> > It's not that it [/dev/random] is magically getting more -- it simply doesn't keep
> > track of how much it has, and nor does it ever decide "oh, I've run out
> > of entropy; I should stop sending data to whomever is reading until I
> > get more."
> >
> > The Solaris implementation simply *ignores* the fact that it has run out
> > of entropy. It just gives and gives and gives... Similarly to how most
> > machines' "/dev/urandom"s work.
>
> I see. I can't help but wondering why they did it that way,

Because they couldn't *figure out* how to make it block.

> taking into account that that's what /dev/urandom is for. In that way,
> the Solaris implementation of /dev/random is deceptive, then.
              ^^^^^^^^^^^^^^
                emulation

-- 
$a=24;split//,240513;s/\B/ => /for@@=qw(ac ab bc ba cb ca
);{push(@b,$a),($a-=6)^=1 for 2..$a/6x--$|;print "$@[$a%6
]\n";((6<=($a-=6))?$a+=$_[$a%6]-$a%6:($a=pop @b))&&redo;}