1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-03-14 20:56:42 +00:00

test/e2e: drop deprecated rand.Seed()

Just drop it, bump to golang v1.20 will cause the generator to be
automatically seeded at program startup:

https://pkg.go.dev/math/rand@go1.20#Seed
This commit is contained in:
Markus Lehtonen 2023-02-16 19:22:35 +02:00
parent 1b8ab4b862
commit cc57fa6a93

View file

@ -19,10 +19,8 @@ package e2e
import (
"flag"
"fmt"
"math/rand"
"os"
"testing"
"time"
"k8s.io/kubernetes/test/e2e"
"k8s.io/kubernetes/test/e2e/framework"
@ -63,7 +61,6 @@ func TestMain(m *testing.M) {
testfiles.AddFileSource(testfiles.RootFileSource{Root: framework.TestContext.RepoRoot})
}
rand.Seed(time.Now().UnixNano())
os.Exit(m.Run())
}