hrng test

This commit is contained in:
Bob Mottram 2014-09-21 09:32:28 +01:00
parent 8281f2a2dc
commit f2676ea295
1 changed files with 2 additions and 0 deletions

View File

@ -126,6 +126,8 @@ function random_number_generator {
sed -i 's|#HRNGDEVICE=/dev/hwrng|HRNGDEVICE=/dev/hwrng|g' /etc/default/rng-tools
# TODO there should be a system restart at this point to enable /dev/hwrng
service rng-tools restart
# Test that it works
cat /dev/hwrng | rngtest -c 1000
else
apt-get -y install haveged
fi