Fixed static method

This commit is contained in:
Bob Polis 2021-11-05 16:36:51 +01:00
parent a0f852d419
commit d607dab17c

View File

@ -32,7 +32,7 @@ namespace sc {
}
template <typename T, typename Iter>
T choice(Iter from, Iter to) {
static T choice(Iter from, Iter to) {
std::uniform_int_distribution<int> dist {0, static_cast<int>(to - from) - 1};
return *(from + dist(instance()._reng));
}