aboutsummaryrefslogtreecommitdiff
path: root/backend/RNG.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-11-02 22:19:15 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-11-02 22:19:15 +0100
commit07b8a5b0baed8c7b23681c99f25f297045945bfc (patch)
tree8383b4b675aba53d19a667f4713c3e73c32e9652 /backend/RNG.cpp
parentd554cb39a2f1ec97dd214a5dd200ae5f03cf616d (diff)
fix more bugs
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);
}