aboutsummaryrefslogtreecommitdiff
path: root/src/random.h
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2018-12-17 16:48:21 -0800
committerPieter Wuille <pieter.wuille@gmail.com>2019-01-16 15:46:27 -0800
commit05fde14e3afe6f7156ebb6df6cd0e3ae12635b89 (patch)
treecd906acda4ca6c7233b9d4776e1fc129c6dbdfed /src/random.h
parent2d1cc5093949f8ea9487a68724162c8b39035ad8 (diff)
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 00e90abbc5..221545a8ef 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