Increment counter after use.
authorDr. Stephen Henson <steve@openssl.org>
Tue, 5 Jun 2007 17:28:00 +0000 (17:28 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Tue, 5 Jun 2007 17:28:00 +0000 (17:28 +0000)
fips-1.0/rand/fips_rand.c

index d0930242ef681c8bd4c9f65fb2a34c509644aa92..153e8a1c461c61440ad4f71e94180f9d1348e5eb 100644 (file)
@@ -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();