Skip to content

Commit

Permalink
fix lints
Browse files Browse the repository at this point in the history
Signed-off-by: cpanato <ctadeu@gmail.com>
  • Loading branch information
cpanato committed Nov 24, 2023
1 parent 8c37851 commit 1598ff0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/envconf/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,9 +300,9 @@ func RandomName(prefix string, n int) string {
if len(prefix) >= n {
return prefix
}
rand.Seed(time.Now().UnixNano())
r := rand.New(rand.NewSource(time.Now().UnixNano()))
p := make([]byte, n)
rand.Read(p)
r.Read(p)
if prefix == "" {
return hex.EncodeToString(p)[:n]
}
Expand Down

0 comments on commit 1598ff0

Please sign in to comment.