From 596af9457140a2df667579b630a071e1f7c78472 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sat, 27 Feb 2021 21:31:22 -0500 Subject: Use FixedSizeSecBlock in Mersenne class --- mersenne.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mersenne.h') diff --git a/mersenne.h b/mersenne.h index 2b2af111..3ec6f4c6 100644 --- a/mersenne.h +++ b/mersenne.h @@ -54,7 +54,7 @@ public: void IncorporateEntropy(const byte *input, size_t length) { // Handle word32 size blocks - SecBlock temp(1); + FixedSizeSecBlock temp; temp[0] = 0; if (length > 4) @@ -79,7 +79,7 @@ public: void GenerateBlock(byte *output, size_t size) { // Handle word32 size blocks - SecBlock temp(1); + FixedSizeSecBlock temp; for (size_t i=0; i < size/4; i++, output += 4) { temp[0] = NextMersenneWord(); -- cgit v1.2.1