From d44115ba56e2662eeb89f38c1cdd29e904af2bfc Mon Sep 17 00:00:00 2001 From: Charlie Tonneslan Date: Sat, 16 May 2026 20:30:27 -0400 Subject: [PATCH] drop deprecated rand.Seed call in main math/rand has self-seeded automatically since Go 1.20, so the manual rand.Seed(time.Now().UnixNano()) at the top of main is a no-op. go.mod already requires go 1.20 so we can just delete it. Signed-off-by: Charlie Tonneslan --- main.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/main.go b/main.go index 164e399..05563fc 100644 --- a/main.go +++ b/main.go @@ -1,14 +1,10 @@ package main import ( - "math/rand" - "time" - "github.com/mingrammer/cfmt" ) func main() { - rand.Seed(time.Now().UnixNano()) opts := ParseOptions() if err := Run(opts); err != nil { cfmt.Warningln(err.Error())