From e20d6ef3d680f6197d154a204244fcad83dad053 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Tue, 5 Jun 2007 17:28:00 +0000 Subject: [PATCH] Increment counter after use. --- fips-1.0/rand/fips_rand.c | 2 ++ 1 file changed, 2 insertions(+) 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(); -- 2.25.1