From b4d397258997344d17f289588b3066ecd67954aa Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Mon, 16 Feb 2026 12:59:50 -0800 Subject: [PATCH] Use constant seed for solver PRNG for deterministic results --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 8fa8b03..e536008 100644 --- a/main.go +++ b/main.go @@ -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 {