From 7e93eecce3bc5a1b7bb0284e06f9e2e69454f5ba Mon Sep 17 00:00:00 2001 From: Amiti Uttarwar Date: Wed, 22 Apr 2020 18:35:07 -0700 Subject: [util] Add method that returns random time in milliseconds --- src/random.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/random.h') diff --git a/src/random.h b/src/random.h index 518a5cd3e3..46e3ecc34c 100644 --- a/src/random.h +++ b/src/random.h @@ -69,6 +69,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; +std::chrono::milliseconds GetRandMillis(std::chrono::milliseconds duration_max) noexcept; int GetRandInt(int nMax) noexcept; uint256 GetRandHash() noexcept; -- cgit v1.2.3