diff options
author | jackpoz <giacomopoz@gmail.com> | 2015-11-29 00:07:35 +0100 |
---|---|---|
committer | jackpoz <giacomopoz@gmail.com> | 2015-11-29 00:07:35 +0100 |
commit | c1b4cd21f3debc2eb5e462c5adce659b558c7dc9 (patch) | |
tree | 0d80718c22fe833fd72c660c6792cef8fe14bbe8 /src/common/Utilities/Util.h | |
parent | f8a3fa28bb6c19aa065afc03038e9d922dc7238d (diff) | |
parent | c0faee079542c134925025a3c32c9324e750dfaa (diff) |
Merge pull request #15912 from Treeston/3.3.5-urandms
Core/Util: Add urandms(minMS, maxMS) helper
Diffstat (limited to 'src/common/Utilities/Util.h')
-rw-r--r-- | src/common/Utilities/Util.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/Utilities/Util.h b/src/common/Utilities/Util.h index 6a872b44a60..b748e83408b 100644 --- a/src/common/Utilities/Util.h +++ b/src/common/Utilities/Util.h @@ -82,6 +82,9 @@ int32 irand(int32 min, int32 max); /* Return a random number in the range min..max (inclusive). */ uint32 urand(uint32 min, uint32 max); +/* Return a random millisecond value between min and max seconds. Functionally equivalent to urand(min*IN_MILLISECONDS, max*IN_MILLISECONDS). */ +uint32 urandms(uint32 min, uint32 max); + /* Return a random number in the range 0 .. UINT32_MAX. */ uint32 rand32(); |