From f48a0b54d1e01218914fd46984c7fd030181ff84 Mon Sep 17 00:00:00 2001 From: Jochen Schalanda Date: Thu, 29 Aug 2024 23:56:11 +0200 Subject: [PATCH] chore: remove deprecated `rand.Seed()` in testing.docker --- testing/docker.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/testing/docker.go b/testing/docker.go index 2a7c57f98..619257e08 100644 --- a/testing/docker.go +++ b/testing/docker.go @@ -19,7 +19,6 @@ import ( "strconv" "strings" "testing" - "time" ) func NewDockerContainer(t testing.TB, image string, env []string, cmd []string) (*DockerContainer, error) { @@ -286,10 +285,6 @@ 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)