diff options
| author | Jonas Schnelli <[email protected]> | 2019-03-01 17:03:58 +0100 |
|---|---|---|
| committer | Jonas Schnelli <[email protected]> | 2019-05-03 20:31:18 +0200 |
| commit | 2bc2b8b49ad87376d98591b14403dc3b46e3166b (patch) | |
| tree | 48125d1bf8a013325c48cc079d211a5a915ae726 /src/random.cpp | |
| parent | Merge #15497: rpc: Consistent range arguments in scantxoutset/importmulti/der... (diff) | |
| download | discoin-2bc2b8b49ad87376d98591b14403dc3b46e3166b.tar.xz discoin-2bc2b8b49ad87376d98591b14403dc3b46e3166b.zip | |
Add ChaCha20 encryption option (XOR)
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 1aa78a903..b08de60fb 100644 --- a/src/random.cpp +++ b/src/random.cpp @@ -652,7 +652,7 @@ std::vector<unsigned char> FastRandomContext::randbytes(size_t len) if (requires_seed) RandomSeed(); std::vector<unsigned char> ret(len); if (len > 0) { - rng.Output(&ret[0], len); + rng.Keystream(&ret[0], len); } return ret; } |