]> git.ipfire.org Git - thirdparty/rng-tools.git/commit
rngd: As long as FIPS error rates are low, re-try the same source
authorH. Peter Anvin <hpa@linux.intel.com>
Wed, 1 Aug 2012 21:31:41 +0000 (14:31 -0700)
committerJeff Garzik <jgarzik@redhat.com>
Thu, 2 Aug 2012 04:19:09 +0000 (00:19 -0400)
commit3b4a281bd20d3e88efae159fd722dd4292380c02
treee90ff980559a40bb80fd6849be3eb4afd048953d
parent0044517d087c442225891dd9a26ff52a602a295b
rngd: As long as FIPS error rates are low, re-try the same source

Allow for a small number of FIPS errors before advancing to the
next source.  This prevents a high bandwidth source from stalling
out by shifting to a low bandwidth source (e.g. DRNG->TPM) just
because of a single FIPS failure.  FIPS failures are frequent
enough (1:1250) that this happens on a regular basis.

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