diff --git a/libraries/steve/src/Rand.h b/libraries/steve/src/Rand.h index 107fd6e2b..bd020b118 100644 --- a/libraries/steve/src/Rand.h +++ b/libraries/steve/src/Rand.h @@ -30,12 +30,12 @@ class Rand template <class T> static const T &in(const std::set<T> &s) { auto it(s.begin()); - std::advance(it, next(0ull, (uint64_t)s.size() - 1)); + std::advance(it, next((uint64_t)0, (uint64_t)s.size() - 1)); return *it; } template <class T> inline static const T &in(const std::vector<T> &v) { - return v[(unsigned int)next(0ull, v.size() - 1)]; + return v[next((uint64_t)0, (uint64_t)v.size() - 1)]; } }; } // namespace steve