Use FixedSizeSecBlock in Mersenne class

This commit is contained in:
Jeffrey Walton 2021-02-27 21:31:22 -05:00
parent 5cb57e1431
commit 596af94571
No known key found for this signature in database
GPG Key ID: B36AB348921B1838

View File

@ -54,7 +54,7 @@ public:
void IncorporateEntropy(const byte *input, size_t length)
{
// Handle word32 size blocks
SecBlock<word32> temp(1);
FixedSizeSecBlock<word32, 1> temp;
temp[0] = 0;
if (length > 4)
@ -79,7 +79,7 @@ public:
void GenerateBlock(byte *output, size_t size)
{
// Handle word32 size blocks
SecBlock<word32> temp(1);
FixedSizeSecBlock<word32, 1> temp;
for (size_t i=0; i < size/4; i++, output += 4)
{
temp[0] = NextMersenneWord();