Skip to content

Commit b7dc226

Browse files
Merge pull request #243 from sebrandon1/rand_deprecation
Implements rand deprecation by removing seed initializer
2 parents 108cfcf + 3b772ec commit b7dc226

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)