aboutsummaryrefslogtreecommitdiff
path: root/tests/hash/main.cpp
diff options
context:
space:
mode:
author0xFFFC0000 <136067098+0xFFFC0000@users.noreply.github.com>2023-06-13 01:20:42 +0330
committerGitHub <noreply@github.com>2023-06-13 01:20:42 +0330
commitea053b6c61914534b2448472edf1b8fc9a38cbcc (patch)
tree3718297f0084ce9e10264b41ac9f268df372890a /tests/hash/main.cpp
parentTests: Add blake2b Test Cases for hash testing. (diff)
downloadmonero-ea053b6c61914534b2448472edf1b8fc9a38cbcc.tar.xz
Update tests/hash/main.cpp
Removing preprocessor macro and replacing it with constexpr. Co-authored-by: Jeffro <jeffreyryan@tutanota.com>
Diffstat (limited to '')
-rw-r--r--tests/hash/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/hash/main.cpp b/tests/hash/main.cpp
index 239feca65..23455f7f3 100644
--- a/tests/hash/main.cpp
+++ b/tests/hash/main.cpp
@@ -157,7 +157,7 @@ int main(int argc, char *argv[]) {
if (f == hash_blake2b) {
// blake2b does use different format and has key for hashing.
while (true) {
- #define HASH_DATA_LEN 1024
+ static constexpr size_t HASH_DATA_LEN = 1024;
// data = key[BLAKE2B_KEYBYTES] || hash data[HASH_DATA_LEN]
char data[BLAKE2B_KEYBYTES + HASH_DATA_LEN] = { 0 };
size_t datalen = 0;