aboutsummaryrefslogtreecommitdiff
path: root/backend/RNG.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'backend/RNG.cpp')
-rw-r--r--backend/RNG.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/backend/RNG.cpp b/backend/RNG.cpp
index d804f7b..21d5090 100644
--- a/backend/RNG.cpp
+++ b/backend/RNG.cpp
@@ -10,6 +10,10 @@ RNG & RNG::get() {
return instance;
}
+std::mt19937 & RNG::get_engine() {
+ return RNG::get().rng;
+}
+
int RNG::rand_int(const int upper) {
return this->rand_int(0, upper);
}