From ff5de340a9e3d8f2b6f6a7a2cb4f444bd9a0cb10 Mon Sep 17 00:00:00 2001 From: Andy Goldstein Date: Thu, 10 Aug 2023 09:47:17 -0400 Subject: [PATCH] Update to go 1.20 Signed-off-by: Andy Goldstein --- cmd/sudoku/sudoku.go | 2 -- go.mod | 2 +- internal/solver/bench_test.go | 1 - 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/cmd/sudoku/sudoku.go b/cmd/sudoku/sudoku.go index b3dd343..0c0f2ba 100644 --- a/cmd/sudoku/sudoku.go +++ b/cmd/sudoku/sudoku.go @@ -5,7 +5,6 @@ import ( "fmt" "math/rand" "strconv" - "time" "github.com/operator-framework/deppy/pkg/deppy" "github.com/operator-framework/deppy/pkg/deppy/constraint" @@ -49,7 +48,6 @@ func (s Sudoku) GetVariables(_ context.Context, _ input.EntitySource) ([]deppy.V // adapted from: https://github.com/go-air/gini/blob/871d828a26852598db2b88f436549634ba9533ff/sudoku_test.go#L10 variables := make(map[deppy.Identifier]*input.SimpleVariable, 0) inorder := make([]deppy.Variable, 0) - rand.Seed(time.Now().UnixNano()) // create variables for all number in all positions of the board for row := 0; row < 9; row++ { diff --git a/go.mod b/go.mod index c0ee0de..690df45 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/operator-framework/deppy -go 1.19 +go 1.20 require ( github.com/go-air/gini v1.0.4 diff --git a/internal/solver/bench_test.go b/internal/solver/bench_test.go index 977f694..eae529f 100644 --- a/internal/solver/bench_test.go +++ b/internal/solver/bench_test.go @@ -58,7 +58,6 @@ var BenchmarkInput = func() []deppy.Variable { } } - rand.Seed(seed) result := make([]deppy.Variable, length) for i := range result { result[i] = variable(i)