Browse Source

hrng test

Bob Mottram 11 years ago
parent
commit
f2676ea295
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      install-freedombone.sh

+ 2
- 0
install-freedombone.sh View File

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