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/dbwrapper.cpp | |
parent | cea230eec40054a82fcd31fa97cf46f1585c4a35 (diff) |
refactor: use Span in random.*
Diffstat (limited to 'src/dbwrapper.cpp')
-rw-r--r-- | src/dbwrapper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dbwrapper.cpp b/src/dbwrapper.cpp index b0ea80ea1a..50a601c684 100644 --- a/src/dbwrapper.cpp +++ b/src/dbwrapper.cpp @@ -227,7 +227,7 @@ const unsigned int CDBWrapper::OBFUSCATE_KEY_NUM_BYTES = 8; std::vector<unsigned char> CDBWrapper::CreateObfuscateKey() const { std::vector<uint8_t> ret(OBFUSCATE_KEY_NUM_BYTES); - GetRandBytes(ret.data(), OBFUSCATE_KEY_NUM_BYTES); + GetRandBytes(ret); return ret; } |