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: https://git.librecmc.org/?a=commitdiff_plain;h=e20d6ef3d680f6197d154a204244fcad83dad053;p=oweals%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 d0930242ef..153e8a1c46 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();