On Thu, 24 Dec 2009 15:45:15 +0300
Paul Graphov <[email protected]> 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. 
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[email protected]"

Reply via email to