diff options
| author | Jeffrey Walton <noloader@gmail.com> | 2017-08-04 07:28:35 -0400 |
|---|---|---|
| committer | Jeffrey Walton <noloader@gmail.com> | 2017-08-04 07:28:35 -0400 |
| commit | e52be9ae844c2f3db89a2e3ec8940f6158d477d8 (patch) | |
| tree | 14252f24597968c3c6231ca5676ab14081ae4323 /validat1.cpp | |
| parent | 9a3f45cee6ac21bf37f1cba2fde04407dc655612 (diff) | |
| download | cryptopp-git-e52be9ae844c2f3db89a2e3ec8940f6158d477d8.tar.gz | |
Clear declaration hides previous local declaration
Diffstat (limited to 'validat1.cpp')
| -rw-r--r-- | validat1.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/validat1.cpp b/validat1.cpp index 3943aace..45b3af26 100644 --- a/validat1.cpp +++ b/validat1.cpp @@ -726,7 +726,7 @@ bool TestRandomPool() static const unsigned int ENTROPY_SIZE = 32;
// https://github.com/weidai11/cryptopp/issues/452
- byte result[32], expected[32] = {
+ byte actual[32], expected[32] = {
0x58,0x3E,0x0A,0xAC,0x79,0x71,0x19,0x18,
0x51,0x97,0xC6,0x9B,0xEF,0x82,0x18,0x1E,
0x9C,0x0F,0x5C,0xEF,0xC7,0x89,0xB2,0x94,
@@ -736,8 +736,8 @@ bool TestRandomPool() SecByteBlock seed(0x00, 384);
old.IncorporateEntropy(seed, seed.size());
- old.GenerateBlock(result, sizeof(result));
- fail = (0 != ::memcmp(result, expected, sizeof(expected)));
+ old.GenerateBlock(actual, sizeof(actual));
+ fail = (0 != ::memcmp(actual, expected, sizeof(expected)));
pass &= !fail;
if (fail)
|
