Commit e20d6ef3 authored by Dr. Stephen Henson's avatar Dr. Stephen Henson
Browse files

Increment counter after use.

parent 27f50994
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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();