aboutsummaryrefslogtreecommitdiff
path: root/src/randomenv.h
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2019-10-26 12:20:12 -0700
committerPieter Wuille <pieter.wuille@gmail.com>2019-11-12 14:50:44 -0800
commitcea3902015185adc88adbd031d919f91bc844fd7 (patch)
tree845d407ac3c2c00364ba64c12896ab927c9421b9 /src/randomenv.h
parentb51bae1a5a4fa8ef7825dd1bb09e3f47f96d7a5a (diff)
[MOVEONLY] Move perfmon data gathering to new randomenv module
Diffstat (limited to 'src/randomenv.h')
-rw-r--r--src/randomenv.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/randomenv.h b/src/randomenv.h
new file mode 100644
index 0000000000..46cea6f6f2
--- /dev/null
+++ b/src/randomenv.h
@@ -0,0 +1,17 @@
+// Copyright (c) 2009-2010 Satoshi Nakamoto
+// Copyright (c) 2009-2019 The Bitcoin Core developers
+// Distributed under the MIT software license, see the accompanying
+// file COPYING or http://www.opensource.org/licenses/mit-license.php.
+
+#ifndef BITCOIN_RANDOMENV_H
+#define BITCOIN_RANDOMENV_H
+
+#include <crypto/sha512.h>
+
+/** Gather non-cryptographic environment data that changes over time. */
+void RandAddDynamicEnv(CSHA512& hasher);
+
+/** Gather non-cryptographic environment data that does not change over time. */
+void RandAddStaticEnv(CSHA512& hasher);
+
+#endif