From: Dr. Stephen Henson Date: Tue, 5 Jun 2007 17:28:00 +0000 (+0000) Subject: Increment counter after use. X-Git-Tag: FIPS_098_TEST_1~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e20d6ef3d680f6197d154a204244fcad83dad053;p=thirdparty%2Fopenssl.git Increment counter after use. --- diff --git a/fips-1.0/rand/fips_rand.c b/fips-1.0/rand/fips_rand.c index d0930242ef6..153e8a1c461 100644 --- a/fips-1.0/rand/fips_rand.c +++ b/fips-1.0/rand/fips_rand.c @@ -226,6 +226,8 @@ static void fips_get_dt(FIPS_PRNG_CTX *ctx) buf[10] = (unsigned char) ((ctx->counter >> 16) & 0xff); buf[11] = (unsigned char) ((ctx->counter >> 24) & 0xff); + ctx->counter++; + #ifndef GETPID_IS_MEANINGLESS pid=(unsigned long)getpid();