From 42e78131a0c765138b827d6fbe171467b79dd240 Mon Sep 17 00:00:00 2001 From: PoAn Yang Date: Mon, 16 Oct 2023 15:15:59 +0800 Subject: [PATCH] fix: rand.Seed has been deprecated Signed-off-by: PoAn Yang --- main.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/main.go b/main.go index edd6d819..8e1e7769 100644 --- a/main.go +++ b/main.go @@ -1,9 +1,7 @@ package main import ( - "math/rand" "os" - "time" "github.com/spf13/pflag" "k8s.io/apimachinery/pkg/util/wait" @@ -19,8 +17,6 @@ import ( ) func main() { - rand.Seed(time.Now().UnixNano()) - pflag.CommandLine.SetNormalizeFunc(cliflag.WordSepNormalizeFunc) ccmOptions, err := options.NewCloudControllerManagerOptions()