summaryrefslogtreecommitdiff
path: root/src/util/random.h
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2018-10-20 09:02:25 -0500
committerGitHub <noreply@github.com>2018-10-20 09:02:25 -0500
commit9d9a8bbd4465efd0860b185889fae89e4693d2a2 (patch)
treeec42e3da1ce7d790ece4e1e1df6e35f65c782041 /src/util/random.h
parentf25f227eb4a4df388160cdf62795f7f684b224ea (diff)
parent1d4324bf87a35e36d9cc1e856d74ffbaf912a848 (diff)
Merge branch 'master' into strRewritesstrRewrites
Diffstat (limited to 'src/util/random.h')
-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