Remove unnecessary seeding of math/rand

No longer necessary with Go 1.20.
This commit is contained in:
Andrew Ayer 2023-11-13 16:44:10 -05:00
parent 1da3a9e305
commit 658e320638
1 changed files with 0 additions and 3 deletions

View File

@ -16,7 +16,6 @@ import (
"flag" "flag"
"fmt" "fmt"
"io/fs" "io/fs"
insecurerand "math/rand"
"os" "os"
"os/signal" "os/signal"
"path/filepath" "path/filepath"
@ -152,8 +151,6 @@ func appendFunc(slice *[]string) func(string) error {
} }
func main() { 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) loglist.UserAgent = fmt.Sprintf("certspotter/%s (%s; %s; %s)", certspotterVersion(), runtime.Version(), runtime.GOOS, runtime.GOARCH)
var flags struct { var flags struct {