]> git.ipfire.org Git - thirdparty/rng-tools.git/commit
rngd: Allow up to a 1:1000 false error rate on FIPS tests
authorH. Peter Anvin <hpa@linux.intel.com>
Wed, 1 Aug 2012 21:31:39 +0000 (14:31 -0700)
committerJeff Garzik <jgarzik@redhat.com>
Thu, 2 Aug 2012 04:19:01 +0000 (00:19 -0400)
commitdb508e37fe83b720c45ce7f2cd180dade5e58f3a
tree1d8a0ad1461e7b38598900e26f0ba7c20770f9aa
parent9b1a3bbbdf7da77cf84e2eaafb55260d357ae3de
rngd: Allow up to a 1:1000 false error rate on FIPS tests

The FIPS tests have a measured false positive error rate of
approximately 1:1250.  In order to not permanently disable a
functioning random number source under high traffic, allow
one failure per 1000 successful blocks.

However, never allow more than 25 subsequent failures; this is
handled by not allowing the failures counter to go below zero.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
rngd.c
rngd.h