ozbird
Posts: 8
Joined: Wed Dec 10, 2014 7:26 am

How do I know that rng-tools is now working correctly with the hardware RNG?

Tue May 14, 2019 10:48 am

How do I know that rng-tools is now working correctly with the hardware RNG?

Here is what I got with my RPi 2 B+ v1.1:
# dmesg | fgrep rng
[ 0.023801] random: get_random_u32 called from bucket_table_alloc+0xfc/0x24c with crng_init=0
[ 0.234083] bcm2835-rng 3f104000.rng: hwrng registered
[ 6.864874] random: crng init done

# rngtest -c 1000 </dev/hwrng
rngtest 2-unofficial-mt.14
Copyright (c) 2004 by Henrique de Moraes Holschuh
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

rngtest: starting FIPS tests...
rngtest: bits received from input: 20000032
rngtest: FIPS 140-2 successes: 1000
rngtest: FIPS 140-2 failures: 0
rngtest: FIPS 140-2(2001-10-10) Monobit: 0
rngtest: FIPS 140-2(2001-10-10) Poker: 0
rngtest: FIPS 140-2(2001-10-10) Runs: 0
rngtest: FIPS 140-2(2001-10-10) Long run: 0
rngtest: FIPS 140-2(2001-10-10) Continuous run: 0
rngtest: input channel speed: (min=626.423; avg=1009.480; max=1018.260)Kibits/s
rngtest: FIPS tests speed: (min=8.165; avg=9.837; max=9.939)Mibits/s
rngtest: Program run time: 21292251 microseconds

Cheers!

Andyroo
Posts: 2834
Joined: Sat Jun 16, 2018 12:49 am
Location: Lincs U.K.

Re: How do I know that rng-tools is now working correctly with the hardware RNG?

Tue May 14, 2019 7:59 pm

I’ve no idea but http://scruss.com/blog/2013/06/07/well- ... generator/ has a few examples where the repeating randomness shows up that may help.
Need Pi spray - these things are breeding in my house...

Return to “Raspbian”