aboutsummaryrefslogtreecommitdiff
path: root/src/test/key_tests.cpp
diff options
context:
space:
mode:
authorpasta <pasta@dashboost.org>2022-01-31 19:29:33 +0700
committerpasta <pasta@dashboost.org>2022-03-23 17:36:33 -0500
commit3ae7791bcaa88f5c68592673b8926ee807242ce7 (patch)
treea3c9f0be42e9082a9047f26d4eecb65b441e39a8 /src/test/key_tests.cpp
parentcea230eec40054a82fcd31fa97cf46f1585c4a35 (diff)
downloadbitcoin-3ae7791bcaa88f5c68592673b8926ee807242ce7.tar.xz
refactor: use Span in random.*
Diffstat (limited to 'src/test/key_tests.cpp')
-rw-r--r--src/test/key_tests.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/key_tests.cpp b/src/test/key_tests.cpp
index 61d334ab18..8cb0515a8a 100644
--- a/src/test/key_tests.cpp
+++ b/src/test/key_tests.cpp
@@ -204,7 +204,7 @@ BOOST_AUTO_TEST_CASE(key_key_negation)
// create a dummy hash for signature comparison
unsigned char rnd[8];
std::string str = "Bitcoin key verification\n";
- GetRandBytes(rnd, sizeof(rnd));
+ GetRandBytes(rnd);
uint256 hash;
CHash256().Write(MakeUCharSpan(str)).Write(rnd).Finalize(hash);