aboutsummaryrefslogtreecommitdiff
path: root/src/test/fuzz/muhash.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/fuzz/muhash.cpp')
-rw-r--r--src/test/fuzz/muhash.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/fuzz/muhash.cpp b/src/test/fuzz/muhash.cpp
index dd34c465ed..e74bcb962f 100644
--- a/src/test/fuzz/muhash.cpp
+++ b/src/test/fuzz/muhash.cpp
@@ -20,7 +20,7 @@ FUZZ_TARGET(muhash)
muhash.Insert(data);
muhash.Insert(data2);
- const std::string initial_state_hash{"dd5ad2a105c2d29495f577245c357409002329b9f4d6182c0af3dc2f462555c8"};
+ constexpr uint256 initial_state_hash{"dd5ad2a105c2d29495f577245c357409002329b9f4d6182c0af3dc2f462555c8"};
uint256 out;
uint256 out2;
CallOneOf(
@@ -57,14 +57,14 @@ FUZZ_TARGET(muhash)
#endif
muhash.Finalize(out);
- out2 = uint256S(initial_state_hash);
+ out2 = initial_state_hash;
},
[&] {
// Test that removing all added elements brings the object back to it's initial state
muhash.Remove(data);
muhash.Remove(data2);
muhash.Finalize(out);
- out2 = uint256S(initial_state_hash);
+ out2 = initial_state_hash;
});
assert(out == out2);
}