make post failure simulation reversible in all cases

This commit is contained in:
Dr. Stephen Henson
2011-11-05 18:15:01 +00:00
parent 21a5cb2696
commit df64f34e84
5 changed files with 12 additions and 12 deletions

View File

@@ -114,9 +114,9 @@ static FIPS_PRNG_CTX sctx;
static int fips_prng_fail = 0;
void FIPS_x931_stick(void)
void FIPS_x931_stick(int onoff)
{
fips_prng_fail = 1;
fips_prng_fail = onoff;
}
static void fips_rand_prng_reset(FIPS_PRNG_CTX *ctx)