Skip to content

Commit

Permalink
chore(build): remove rand.Seed to fix the failing lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
pranav-new-relic committed Apr 29, 2024
1 parent 6f0366c commit 2cc3e22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/testhelpers/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"math/rand"
"os"
"strconv"
"time"
)

var (
Expand All @@ -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))]
Expand Down

0 comments on commit 2cc3e22

Please sign in to comment.