On Thursday 27 August 2015 18:09:14 Viktor Dukhovni wrote:
> On Thu, Aug 27, 2015 at 05:22:16PM +0100, Gary Stainburn wrote:
> > Is there a simple way for a simple admin like me to get round this
> > problem?
>
> One more thing. Test the correctness/responsiveness of the various
> random devices. First post the output of:
>
> $ ls -lL /dev/*random
>
> # This one should be fast
> $ time dd if=/dev/urandom bs=32b count=1 of=/dev/null
>
> # This one might be *extremely* slow, you might not be willing
> # to wait that long...
> $ time dd if=/dev/random bs=32b count=1 of=/dev/null
>
> ... for any other "*random" devices.
>
> --
> Viktor.
[root@ollie2 ~]# ls -lL /dev/*random
crw-rw-rw- 1 root root 1, 8 Aug 26 09:35 /dev/random
crw-rw-rw- 1 root root 1, 9 Aug 26 09:35 /dev/urandom
[root@ollie2 ~]# time dd if=/dev/urandom bs=32b count=1 of=/dev/null
1+0 records in
1+0 records out
16384 bytes (16 kB) copied, 0.00318778 s, 5.1 MB/s
real 0m0.005s
user 0m0.001s
sys 0m0.004s
[root@ollie2 ~]# time dd if=/dev/random bs=32b count=1 of=/dev/null
0+1 records in
0+1 records out
78 bytes (78 B) copied, 0.00028356 s, 275 kB/s
real 0m0.002s
user 0m0.000s
sys 0m0.002s
[root@ollie2 ~]#