SEED implementation

This commit is contained in:
da7e committed 2026-04-03 13:58:41 +02:00
1 parent b6067b2045
commit 0045def73b
4 files changed
+16 -19

No files matched your search

+1 -1
View File
@@ -369,7 +369,7 @@ class DepthFirstSearch(MazeGenerator):
The final generated maze.
"""
if seed is not None:
np.random.seed(seed)
random.seed(seed)
maze = self.init_maze(width, height)
if width > 10 and height > 10:
self.forty_two = self.get_cell_ft(width, height)