refactor: use Span in random.*

This commit is contained in:
pasta
2022-01-31 19:29:33 +07:00
parent cea230eec4
commit 3ae7791bca
12 changed files with 21 additions and 19 deletions

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;