diff options
author | Andres Noetzli <andres.noetzli@gmail.com> | 2018-10-19 10:15:33 -0700 |
---|---|---|
committer | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2018-10-19 12:15:33 -0500 |
commit | 7de0540252b62080ee9f98617f5718cb1ae08579 (patch) | |
tree | 4501c19225cd6780f1c8c3884bae940960264cb2 /src/util | |
parent | c116c6c1ec757fe51f2b874e750ad8281baea103 (diff) |
Fix util::Random for macOS builds (#2655)
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/random.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/random.h b/src/util/random.h index e746666fc..e6443c3da 100644 --- a/src/util/random.h +++ b/src/util/random.h @@ -39,10 +39,10 @@ class Random } /** Get the minimum number that can be picked. */ - static uint64_t min() { return 0u; } + static constexpr uint64_t min() { return 0u; } /** Get the maximum number that can be picked. */ - static uint64_t max() { return UINT64_MAX; } + static constexpr uint64_t max() { return UINT64_MAX; } /** Set seed of Random. */ void setSeed(uint64_t seed); |