Use constant seed for solver PRNG for deterministic results

This commit is contained in:
Ian Gulliver
2026-02-16 12:59:50 -08:00
parent 960b96cc08
commit b4d3972589

View File

@@ -1218,7 +1218,7 @@ func handleSolve(db *sql.DB) http.HandlerFunc {
})
}
rng := rand.New(rand.NewSource(rand.Int63()))
rng := rand.New(rand.NewSource(42))
solutions := solver.SolveFast(n, roomSize, pnMultiple, npCost, constraints, solver.DefaultParams, rng)
if solutions == nil {