Skip to content

Commit 3b772ec

Browse files
committed
rand deprecation: seed no longer needed
1 parent 871c10a commit 3b772ec

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

main.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ package main
22

33
import (
44
goflag "flag"
5-
"math/rand"
65
"os"
7-
"time"
86

97
"k8s.io/component-base/cli"
108
utilflag "k8s.io/component-base/cli/flag"
@@ -16,8 +14,6 @@ import (
1614
)
1715

1816
func main() {
19-
rand.Seed(time.Now().UTC().UnixNano())
20-
2117
pflag.CommandLine.SetNormalizeFunc(utilflag.WordSepNormalizeFunc)
2218
pflag.CommandLine.AddGoFlagSet(goflag.CommandLine)
2319

0 commit comments

Comments
 (0)