From d607dab17cf41289b19102158bfbee29e50d1942 Mon Sep 17 00:00:00 2001 From: Bob Polis Date: Fri, 5 Nov 2021 16:36:51 +0100 Subject: [PATCH] Fixed static method --- src/random.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/random.hpp b/src/random.hpp index a47181c..d388eff 100644 --- a/src/random.hpp +++ b/src/random.hpp @@ -32,7 +32,7 @@ namespace sc { } template - T choice(Iter from, Iter to) { + static T choice(Iter from, Iter to) { std::uniform_int_distribution dist {0, static_cast(to - from) - 1}; return *(from + dist(instance()._reng)); }