From 658e3206381f46b0684bb03f5e8d71696e8838c9 Mon Sep 17 00:00:00 2001 From: Andrew Ayer Date: Mon, 13 Nov 2023 16:44:10 -0500 Subject: [PATCH] Remove unnecessary seeding of math/rand No longer necessary with Go 1.20. --- cmd/certspotter/main.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/cmd/certspotter/main.go b/cmd/certspotter/main.go index 9730789..9dea831 100644 --- a/cmd/certspotter/main.go +++ b/cmd/certspotter/main.go @@ -16,7 +16,6 @@ import ( "flag" "fmt" "io/fs" - insecurerand "math/rand" "os" "os/signal" "path/filepath" @@ -152,8 +151,6 @@ func appendFunc(slice *[]string) func(string) error { } func main() { - insecurerand.Seed(time.Now().UnixNano()) // TODO: remove after upgrading to Go 1.20 - loglist.UserAgent = fmt.Sprintf("certspotter/%s (%s; %s; %s)", certspotterVersion(), runtime.Version(), runtime.GOOS, runtime.GOARCH) var flags struct {