Skip to content

Commit

Permalink
refactor: drop call to rand.Seed
Browse files Browse the repository at this point in the history
As of Go 1.20, it is no longer necessary to call rand.Seed with a random
value.
  • Loading branch information
subpop committed Aug 28, 2024
1 parent e44424e commit 194a360
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions cmd/yggd/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 194a360

Please sign in to comment.