On Wed, Sep 29, 2010 at 09:57:53AM -0400, Simon Perreault wrote:
> I'm trying to use /dev/srandom, but I can't get even a single byte out
> of it.
> 
> $ hexdump -n 1 /dev/srandom
> 
> It just hangs there, sleeping. If I use /dev/urandom instead, it returns
> immediately, as expected:
> 
> $ hexdump -n 1 /dev/urandom
> 0000000 0069
> 0000001
> 
> I tried on various routers that have been forwarding packets since
> forever. I waited a "long time" for the read to succeed. I tried on
> OpenBSD 4.3 and 4.6. Am I doing something wrong?

Using hexdump(1), apparently - "dd if=/dev/srandom bs=1 count=1 |
hexdump" works just fine. You may want to sendbug this one.

                Joachim

-- 
TFMotD: string2key (8) - map a password into a key
http://www.joachimschipper.nl/

Reply via email to