File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -592,6 +592,11 @@ std::chrono::microseconds GetRandMicros(std::chrono::microseconds duration_max)
592
592
return std::chrono::microseconds{GetRand (duration_max.count ())};
593
593
}
594
594
595
+ std::chrono::milliseconds GetRandMillis (std::chrono::milliseconds duration_max) noexcept
596
+ {
597
+ return std::chrono::milliseconds{GetRand (duration_max.count ())};
598
+ }
599
+
595
600
int GetRandInt (int nMax) noexcept
596
601
{
597
602
return GetRand (nMax);
Original file line number Diff line number Diff line change 69
69
void GetRandBytes (unsigned char * buf, int num) noexcept ;
70
70
uint64_t GetRand (uint64_t nMax) noexcept ;
71
71
std::chrono::microseconds GetRandMicros (std::chrono::microseconds duration_max) noexcept ;
72
+ std::chrono::milliseconds GetRandMillis (std::chrono::milliseconds duration_max) noexcept ;
72
73
int GetRandInt (int nMax) noexcept ;
73
74
uint256 GetRandHash () noexcept ;
74
75
You can’t perform that action at this time.
0 commit comments