Skip to content

Commit

Permalink
remove deprecated call
Browse files Browse the repository at this point in the history
  • Loading branch information
d-rk committed Aug 14, 2023
1 parent 7ed1909 commit e8a6516
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
# .golangci.yml

run:
# Timeout for analysis, e.g. 30s, 5m.
# Default: 1m
timeout: 3m

linters:
enable:
- gofmt
Expand Down
4 changes: 2 additions & 2 deletions internal/k8s/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ const letterBytes = "abcdefghijklmnpqrstuvwxyz123456789"

func randomString(n int) string {

rand.Seed(time.Now().UnixNano())
r := rand.New(rand.NewSource(time.Now().UnixNano()))

b := make([]byte, n)
for i := range b {
b[i] = letterBytes[rand.Intn(len(letterBytes))]
b[i] = letterBytes[r.Intn(len(letterBytes))]
}
return string(b)
}
Expand Down

0 comments on commit e8a6516

Please sign in to comment.