From 2cc3e229a53d68ab51ed0f47b3822eada42c9753 Mon Sep 17 00:00:00 2001 From: pranav-new-relic Date: Fri, 19 Apr 2024 12:22:09 +0530 Subject: [PATCH] chore(build): remove rand.Seed to fix the failing lint issue --- pkg/testhelpers/helpers.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/testhelpers/helpers.go b/pkg/testhelpers/helpers.go index f25284f22..5b1f0dffb 100644 --- a/pkg/testhelpers/helpers.go +++ b/pkg/testhelpers/helpers.go @@ -5,7 +5,6 @@ import ( "math/rand" "os" "strconv" - "time" ) var ( @@ -21,7 +20,8 @@ const IntegrationTestAccountID = 3806526 // RandSeq is used to get a string made up of n random lowercase letters. func RandSeq(n int) string { - rand.Seed(time.Now().UnixNano()) + // commented this line out, since this no longer works with go1.21 and needs no alternative, as seeding isn't needed + // rand.Seed(time.Now().UnixNano()) b := make([]rune, n) for i := range b { b[i] = letters[rand.Intn(len(letters))]