Skip to content

Commit

Permalink
Update to go 1.20
Browse files Browse the repository at this point in the history
Signed-off-by: Andy Goldstein <andy.goldstein@redhat.com>
  • Loading branch information
ncdc authored and joelanford committed Aug 10, 2023
1 parent d928511 commit 4c15c99
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions cmd/sudoku/sudoku.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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++ {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 0 additions & 1 deletion internal/solver/bench_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4c15c99

Please sign in to comment.