From fa883ab35ad2d4328e35b1e855d0833740a6b910 Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Wed, 12 Jun 2019 15:19:02 -0400 Subject: net: Use mockable time for tx download --- src/random.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/random.h') diff --git a/src/random.h b/src/random.h index 75d037738d..22801ec155 100644 --- a/src/random.h +++ b/src/random.h @@ -10,7 +10,8 @@ #include #include -#include +#include // For std::chrono::microseconds +#include #include /** @@ -69,6 +70,7 @@ */ void GetRandBytes(unsigned char* buf, int num) noexcept; uint64_t GetRand(uint64_t nMax) noexcept; +std::chrono::microseconds GetRandMicros(std::chrono::microseconds duration_max) noexcept; int GetRandInt(int nMax) noexcept; uint256 GetRandHash() noexcept; -- cgit v1.2.3