aboutsummaryrefslogtreecommitdiff
path: root/src/random.h
diff options
context:
space:
mode:
authorAmiti Uttarwar <amiti@uttarwar.org>2020-04-22 18:35:07 -0700
committerAmiti Uttarwar <amiti@uttarwar.org>2020-04-23 14:42:25 -0700
commit7e93eecce3bc5a1b7bb0284e06f9e2e69454f5ba (patch)
tree8121fa55daa531931d75252b63075f423b445af8 /src/random.h
parent89eeb4a3335f8e871cc3f5286af4546dff66172a (diff)
downloadbitcoin-7e93eecce3bc5a1b7bb0284e06f9e2e69454f5ba.tar.xz
[util] Add method that returns random time in milliseconds
Diffstat (limited to 'src/random.h')
-rw-r--r--src/random.h1
1 files changed, 1 insertions, 0 deletions
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;