summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndres Noetzli <andres.noetzli@gmail.com>2018-10-19 10:15:33 -0700
committerAndrew Reynolds <andrew.j.reynolds@gmail.com>2018-10-19 12:15:33 -0500
commit7de0540252b62080ee9f98617f5718cb1ae08579 (patch)
tree4501c19225cd6780f1c8c3884bae940960264cb2 /src
parentc116c6c1ec757fe51f2b874e750ad8281baea103 (diff)
Fix util::Random for macOS builds (#2655)
Diffstat (limited to 'src')
-rw-r--r--src/util/random.h4
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);
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback