diff options
author | HampusM <hampus@hampusmat.com> | 2022-02-13 20:54:02 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-02-13 20:54:02 +0100 |
commit | 176d6141c87a180b251bacaee656808bad17498b (patch) | |
tree | 9d3893014eeb8be293cf8928044925c379739d24 /src/maze.hpp | |
parent | b0c265ee3d94921f55266a679d3801a4d2b4505b (diff) |
refactor: add random number generation abstraction
Diffstat (limited to 'src/maze.hpp')
-rw-r--r-- | src/maze.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/maze.hpp b/src/maze.hpp index e525d70..650e60a 100644 --- a/src/maze.hpp +++ b/src/maze.hpp @@ -2,8 +2,8 @@ #include "engine/matrix.hpp" #include "engine/vector2.hpp" +#include "random_generator.hpp" #include <memory> -#include <random> #include <string> /** @@ -16,6 +16,7 @@ */ template <typename Element> void matrix_to_maze(Matrix<Element> *matrix, std::shared_ptr<Vector2> start_pos, - Element space_element, std::mt19937 random_gen); + Element space_element, + std::shared_ptr<RandomNumberGenerator> random_gen); #include "maze.tpp" |