Skip to content

Commit ad99570

Browse files
mamachanko100mik
authored andcommitted
fix: stop calling redundant rand.Seed
see: https://tip.golang.org/doc/go1.20 Signed-off-by: Max Brauer <[email protected]>
1 parent a1c5d04 commit ad99570

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

cli/cmd/kctrl/kctrl.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44
package main
55

66
import (
7-
"math/rand"
87
"os"
9-
"time"
108

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

2725
// nonExitingMain does not use os.Exit to make sure Go runs defers
2826
func nonExitingMain() error {
29-
rand.Seed(time.Now().UTC().UnixNano())
30-
3127
// TODO logs
3228
// TODO log flags used
3329

0 commit comments

Comments
 (0)