Skip to content
This repository was archived by the owner on Jan 28, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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