From 194a3605d049a5db4a46aacd790ad3444a4d1342 Mon Sep 17 00:00:00 2001 From: Link Dupont Date: Thu, 22 Aug 2024 14:32:00 -0400 Subject: [PATCH] refactor: drop call to rand.Seed As of Go 1.20, it is no longer necessary to call rand.Seed with a random value. --- cmd/yggd/util.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/cmd/yggd/util.go b/cmd/yggd/util.go index 773a6fe0..aea42760 100644 --- a/cmd/yggd/util.go +++ b/cmd/yggd/util.go @@ -7,13 +7,8 @@ import ( "math/rand" "os" "path/filepath" - "time" ) -func init() { - rand.Seed(time.Now().UnixNano()) -} - func randomString(n int) string { const letters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" data := make([]byte, n)