CimberFlae / Maze

A Python Library for Maze Generation & Solving
0 stars 0 forks source link

Cell and Mesh are using unseeded random generator #40

Closed CimberFlae closed 5 years ago

CimberFlae commented 5 years ago

We seed the random generator of all Generators in the AbstractGenerator class, but some calls are made to Mesh and Cell which use unseeded random in their respective classes. These calls should pass the random generator to use, so they have the same seed as the Generator that calls them.

CimberFlae commented 5 years ago

Actually the Generator implementations use a different (seeded) random generator than the AbstractGenerator. This should be changed as well.