refactor: Replace &foo[0] with foo.data()

This commit is contained in:
MarcoFalke
2021-04-30 20:03:35 +02:00
parent faece47c47
commit fac30eec42
15 changed files with 40 additions and 40 deletions

View File

@@ -628,7 +628,7 @@ std::vector<unsigned char> FastRandomContext::randbytes(size_t len)
if (requires_seed) RandomSeed();
std::vector<unsigned char> ret(len);
if (len > 0) {
rng.Keystream(&ret[0], len);
rng.Keystream(ret.data(), len);
}
return ret;
}