diff options
author | pasta <pasta@dashboost.org> | 2022-01-31 19:29:33 +0700 |
---|---|---|
committer | pasta <pasta@dashboost.org> | 2022-03-23 17:36:33 -0500 |
commit | 3ae7791bcaa88f5c68592673b8926ee807242ce7 (patch) | |
tree | a3c9f0be42e9082a9047f26d4eecb65b441e39a8 /src/addrdb.cpp | |
parent | cea230eec40054a82fcd31fa97cf46f1585c4a35 (diff) |
refactor: use Span in random.*
Diffstat (limited to 'src/addrdb.cpp')
-rw-r--r-- | src/addrdb.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/addrdb.cpp b/src/addrdb.cpp index 0fa8f3c3da..61b5add6bb 100644 --- a/src/addrdb.cpp +++ b/src/addrdb.cpp @@ -49,7 +49,7 @@ bool SerializeFileDB(const std::string& prefix, const fs::path& path, const Data { // Generate random temporary filename uint16_t randv = 0; - GetRandBytes((unsigned char*)&randv, sizeof(randv)); + GetRandBytes({(unsigned char*)&randv, sizeof(randv)}); std::string tmpfn = strprintf("%s.%04x", prefix, randv); // open temp output file, and associate with CAutoFile |