Remove unnecessary seeding of math/rand
No longer necessary with Go 1.20.
This commit is contained in:
parent
1da3a9e305
commit
658e320638
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue