Increment counter after use.

This commit is contained in:
Dr. Stephen Henson
2007-06-05 17:28:00 +00:00
parent 27f50994ff
commit e20d6ef3d6

View 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();