From 176d6141c87a180b251bacaee656808bad17498b Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 13 Feb 2022 20:54:02 +0100 Subject: refactor: add random number generation abstraction --- src/maze.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/maze.hpp') 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 -#include #include /** @@ -16,6 +16,7 @@ */ template void matrix_to_maze(Matrix *matrix, std::shared_ptr start_pos, - Element space_element, std::mt19937 random_gen); + Element space_element, + std::shared_ptr random_gen); #include "maze.tpp" -- cgit v1.2.3-18-g5258