marmar24012 / Bash-Scripts

A Cumulative Of Bash Scripts Made To Make My Job Easier
0 stars 0 forks source link

Checking For Random Number Generator (rngd) #38

Open marmar24012 opened 2 weeks ago

marmar24012 commented 2 weeks ago

cat /proc/sys/kernel/random/entropy_avail # Should be greater than 400, ideally over 2000 sudo systemctl status rngd yum list rng-tools yum install rng-tools time dd if=/dev/random of=/dev/null bs=1024 count=1 iflag=fullblock # should take seconds rngd -v rngd -l systemctl start rngd time cat /dev/random | rngtest -c 1000 # ~8 mins to run, Look for low failures, less than 10

psapps1007:/# time cat /dev/random | rngtest -c 1000 rngtest 6 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 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=19.590; avg=43.040; max=12934.603)Kibits/s rngtest: FIPS tests speed: (min=76.600; avg=103.187; max=122.266)Mibits/s rngtest: Program run time: 453973305 microseconds

real 7m34.00s user 0m0.26s sys 0m1.34s