aboutsummaryrefslogtreecommitdiff
path: root/src/random.h
diff options
context:
space:
mode:
authorJonas Schnelli <[email protected]>2019-03-01 17:03:58 +0100
committerJonas Schnelli <[email protected]>2019-05-03 20:31:18 +0200
commit2bc2b8b49ad87376d98591b14403dc3b46e3166b (patch)
tree48125d1bf8a013325c48cc079d211a5a915ae726 /src/random.h
parentMerge #15497: rpc: Consistent range arguments in scantxoutset/importmulti/der... (diff)
downloaddiscoin-2bc2b8b49ad87376d98591b14403dc3b46e3166b.tar.xz
discoin-2bc2b8b49ad87376d98591b14403dc3b46e3166b.zip
Add ChaCha20 encryption option (XOR)
Diffstat (limited to 'src/random.h')
-rw-r--r--src/random.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/random.h b/src/random.h
index 1c035f87b..2f9c0f5a3 100644
--- a/src/random.h
+++ b/src/random.h
@@ -111,7 +111,7 @@ private:
if (requires_seed) {
RandomSeed();
}
- rng.Output(bytebuf, sizeof(bytebuf));
+ rng.Keystream(bytebuf, sizeof(bytebuf));
bytebuf_size = sizeof(bytebuf);
}