From 7de0540252b62080ee9f98617f5718cb1ae08579 Mon Sep 17 00:00:00 2001 From: Andres Noetzli Date: Fri, 19 Oct 2018 10:15:33 -0700 Subject: [PATCH] Fix util::Random for macOS builds (#2655) --- src/util/random.h | 4 ++-- 1 file 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); -- 2.30.2