drbg: revert renamings of the generate and reseed counter
[openssl.git] / providers / implementations / rands / drbg_hash.c
index e5266dbb299e7d8902b2fc35bf87ca58e0607df4..014b080f3782cd4509c271268da7a2d6db18a109 100644 (file)
@@ -323,7 +323,7 @@ static int drbg_hash_generate(PROV_DRBG *drbg,
 {
     PROV_DRBG_HASH *hash = (PROV_DRBG_HASH *)drbg->data;
     unsigned char counter[4];
-    int reseed_counter = drbg->reseed_gen_counter;
+    int reseed_counter = drbg->generate_counter;
 
     counter[0] = (unsigned char)((reseed_counter >> 24) & 0xff);
     counter[1] = (unsigned char)((reseed_counter >> 16) & 0xff);