From 1598ff0a3cf0278c050c3b60da6754f261f34a8f Mon Sep 17 00:00:00 2001 From: cpanato Date: Fri, 24 Nov 2023 14:33:39 +0100 Subject: [PATCH] fix lints Signed-off-by: cpanato --- pkg/envconf/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/envconf/config.go b/pkg/envconf/config.go index 5e6da96b..f2267ae2 100644 --- a/pkg/envconf/config.go +++ b/pkg/envconf/config.go @@ -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] }