yarrow random generator

RW rwmaillists at googlemail.com
Thu Dec 24 14:47:08 UTC 2009


On Thu, 24 Dec 2009 15:45:15 +0300
Paul Graphov <graphov at gmail.com> wrote:

> Hello guys,
> 
> I've looked at FreeBSD 8.0 cryptographically secure pseudorandom
> numbers generator and have a question. It looks like a bug but I'am
> not sure.
> 
> In file sys/dev/randomdev.c, function random_read:
> 
>         if (!random_systat.seeded)
>                 error = (*random_systat.block)(flag);
> 
> It blocks until PRNG is seeded.

random_systat.seeded is initialized to 1 and it's never set to anything
other than 1

I got impression that blocking was something that seemed like a good
idea at the time, but fell-off half-way through coding. It's not a
good idea to block /dev/random, without a separate urandom. 


More information about the freebsd-hackers mailing list