diff options
author | MarcoFalke <falke.marco@gmail.com> | 2021-04-30 20:03:35 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2021-05-04 06:55:31 +0200 |
commit | fac30eec42c486ec1bfd696293040a7aa0f04625 (patch) | |
tree | 562aadddf3da65e1366d45b2860d8e11c476d866 /src/random.cpp | |
parent | faece47c4706783e0460ed977390a44630b2d44c (diff) |
refactor: Replace &foo[0] with foo.data()
Diffstat (limited to 'src/random.cpp')
-rw-r--r-- | src/random.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/random.cpp b/src/random.cpp index 9900825abb..174f4cef31 100644 --- a/src/random.cpp +++ b/src/random.cpp @@ -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; } |