diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index c339251cf..8d08201f9 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -22,7 +22,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - go: ["1.21.x", "1.22.x"] + go: ["1.22.x"] steps: - uses: actions/checkout@v4 diff --git a/testing/docker.go b/testing/docker.go index 2a7c57f98..d418f3568 100644 --- a/testing/docker.go +++ b/testing/docker.go @@ -15,11 +15,10 @@ import ( dockerclient "github.com/docker/docker/client" "github.com/hashicorp/go-multierror" "io" - "math/rand" + "math/rand/v2" "strconv" "strings" "testing" - "time" ) func NewDockerContainer(t testing.TB, image string, env []string, cmd []string) (*DockerContainer, error) { @@ -286,15 +285,11 @@ type dockerImagePullOutput struct { Progress string `json:"progress"` } -func init() { - rand.Seed(time.Now().UnixNano()) -} - func pseudoRandStr(n int) string { var letterRunes = []rune("abcdefghijklmnopqrstuvwxyz0123456789") b := make([]rune, n) for i := range b { - b[i] = letterRunes[rand.Intn(len(letterRunes))] + b[i] = letterRunes[rand.IntN(len(letterRunes))] } return string(b) }