aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_random.h
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2017-05-23 15:09:30 -0700
committerPieter Wuille <pieter.wuille@gmail.com>2017-06-05 12:44:44 -0700
commit124d13a58cdcd9f66eeffc7e6281e3eb129e3398 (patch)
tree27b689722c38170f22543453fbf06b41fb336846 /src/test/test_random.h
parent90620d66c91ae91c0d5ce73582eb39c47e35ae98 (diff)
Merge test_random.h into test_bitcoin.h
Diffstat (limited to 'src/test/test_random.h')
-rw-r--r--src/test/test_random.h29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/test/test_random.h b/src/test/test_random.h
deleted file mode 100644
index 318c44df4d..0000000000
--- a/src/test/test_random.h
+++ /dev/null
@@ -1,29 +0,0 @@
-// Copyright (c) 2009-2010 Satoshi Nakamoto
-// Copyright (c) 2009-2016 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_TEST_RANDOM_H
-#define BITCOIN_TEST_RANDOM_H
-
-#include "random.h"
-
-extern uint256 insecure_rand_seed;
-extern FastRandomContext insecure_rand_ctx;
-
-static inline void seed_insecure_rand(bool fDeterministic = false)
-{
- if (fDeterministic) {
- insecure_rand_seed = uint256();
- } else {
- insecure_rand_seed = GetRandHash();
- }
- insecure_rand_ctx = FastRandomContext(insecure_rand_seed);
-}
-
-static inline uint32_t insecure_rand(void)
-{
- return insecure_rand_ctx.rand32();
-}
-
-#endif