refactor: use Span in random.*

This commit is contained in:
pasta committed 2022-03-23 17:36:33 -05:00
1 parent cea230eec4
commit 3ae7791bca
12 files changed
+21 -19

No files matched your search

+1 -1
View File
@@ -81,7 +81,7 @@ BOOST_AUTO_TEST_CASE(passphrase) {
std::string hash(GetRandHash().ToString());
std::vector<unsigned char> vchSalt(8);
GetRandBytes(vchSalt.data(), vchSalt.size());
GetRandBytes(vchSalt);
uint32_t rounds = InsecureRand32();
if (rounds > 30000)
rounds = 30000;