aboutsummaryrefslogtreecommitdiff
path: root/src/random.h
diff options
context:
space:
mode:
authorMatt Corallo <git@bluematt.me>2017-05-22 16:01:52 -0400
committerMatt Corallo <git@bluematt.me>2017-05-22 16:01:52 -0400
commit888cce57a67c901b89c86cc645f275071d021285 (patch)
tree14106f6de281a105033abba873dc6007c7be7180 /src/random.h
parent399fb8f2d0fa9cff2f461ef2c0da5b91765987f1 (diff)
downloadbitcoin-888cce57a67c901b89c86cc645f275071d021285.tar.xz
Add perf counter data to GetStrongRandBytes state in scheduler
Diffstat (limited to 'src/random.h')
-rw-r--r--src/random.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/random.h b/src/random.h
index 9551e1c461..6a63d57429 100644
--- a/src/random.h
+++ b/src/random.h
@@ -24,6 +24,13 @@ int GetRandInt(int nMax);
uint256 GetRandHash();
/**
+ * Add a little bit of randomness to the output of GetStrongRangBytes.
+ * This sleeps for a millisecond, so should only be called when there is
+ * no other work to be done.
+ */
+void RandAddSeedSleep();
+
+/**
* Function to gather random data from multiple sources, failing whenever any
* of those source fail to provide a result.
*/