Skip to content

Commit

Permalink
fix: stop calling redundant rand.Seed
Browse files Browse the repository at this point in the history
see: https://tip.golang.org/doc/go1.20

Signed-off-by: Max Brauer <[email protected]>
  • Loading branch information
mamachanko committed Jan 22, 2025
1 parent a1c5d04 commit 8662381
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions cli/cmd/kctrl/kctrl.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
package main

import (
"math/rand"
"os"
"time"

"github.com/cppforlife/cobrautil"
uierrs "github.com/cppforlife/go-cli-ui/errors"
Expand All @@ -26,8 +24,6 @@ func main() {

// nonExitingMain does not use os.Exit to make sure Go runs defers
func nonExitingMain() error {
rand.Seed(time.Now().UTC().UnixNano())

// TODO logs
// TODO log flags used

Expand Down

0 comments on commit 8662381

Please sign in to comment.