diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-02 22:19:15 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-02 22:19:15 +0100 |
commit | 07b8a5b0baed8c7b23681c99f25f297045945bfc (patch) | |
tree | 8383b4b675aba53d19a667f4713c3e73c32e9652 /backend/RNG.cpp | |
parent | d554cb39a2f1ec97dd214a5dd200ae5f03cf616d (diff) |
fix more bugs
Diffstat (limited to 'backend/RNG.cpp')
-rw-r--r-- | backend/RNG.cpp | 4 |
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); } |