aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/maze.tpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/maze.tpp b/src/maze.tpp
index 84c273e..fd71479 100644
--- a/src/maze.tpp
+++ b/src/maze.tpp
@@ -111,10 +111,8 @@ void matrix_to_maze(Matrix<Element> *matrix, std::shared_ptr<Vector2> start_pos,
visited_pos_cnt++;
- auto random_dist = std::uniform_int_distribution<unsigned short>(
- 0U,
- static_cast<unsigned short>(neighbours.size()) - 1U
- );
+ auto random_dist = std::uniform_int_distribution<unsigned int>(
+ 0U, static_cast<unsigned int>(neighbours.size()) - 1U);
auto next_pos = neighbours[random_dist(random_gen)];