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 <[email protected]>
ncdc committed Aug 10, 2023

Verified

This commit was signed with the committer’s verified signature.
ncdc Andy Goldstein
1 parent d928511 commit ff5de34
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
@@ -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++ {
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
1 change: 0 additions & 1 deletion internal/solver/bench_test.go
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit ff5de34

Please sign in to comment.