aboutsummaryrefslogtreecommitdiff
path: root/src/random.h
diff options
context:
space:
mode:
authorPieter Wuille <[email protected]>2018-12-17 16:48:21 -0800
committerPieter Wuille <[email protected]>2019-01-16 15:46:27 -0800
commit05fde14e3afe6f7156ebb6df6cd0e3ae12635b89 (patch)
treecd906acda4ca6c7233b9d4776e1fc129c6dbdfed /src/random.h
parentDon't log RandAddSeedPerfmon details (diff)
downloaddiscoin-05fde14e3afe6f7156ebb6df6cd0e3ae12635b89.tar.xz
discoin-05fde14e3afe6f7156ebb6df6cd0e3ae12635b89.zip
Automatically initialize RNG on first use.
Diffstat (limited to 'src/random.h')
-rw-r--r--src/random.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/random.h b/src/random.h
index 00e90abbc..221545a8e 100644
--- a/src/random.h
+++ b/src/random.h
@@ -178,7 +178,12 @@ void GetOSRand(unsigned char *ent32);
*/
bool Random_SanityCheck();
-/** Initialize the RNG. */
+/**
+ * Initialize global RNG state and log any CPU features that are used.
+ *
+ * Calling this function is optional. RNG state will be initialized when first
+ * needed if it is not called.
+ */
void RandomInit();
#endif // BITCOIN_RANDOM_H