From 21cadbe180b5eec791abe9e64f0b5b2b44ebb9a8 Mon Sep 17 00:00:00 2001 From: Sean DuBois Date: Sat, 16 Mar 2024 19:49:42 -0400 Subject: [PATCH] Fix linter errors golangci-lint upgrade to v1.56.2 added more checks Relates to pion/.goassets#201 --- math.go | 2 +- rand_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/math.go b/math.go index 57e1caa..c960bfe 100644 --- a/math.go +++ b/math.go @@ -42,7 +42,7 @@ func NewMathRandomGenerator() MathRandomGenerator { seed = uint64(time.Now().UnixNano()) } - return &mathRandomGenerator{r: mrand.New(mrand.NewSource(int64(seed)))} //nolint: stylechec, gosec + return &mathRandomGenerator{r: mrand.New(mrand.NewSource(int64(seed)))} //nolint: stylecheck, gosec } func (g *mathRandomGenerator) Intn(n int) int { diff --git a/rand_test.go b/rand_test.go index 2b974c2..5c1a711 100644 --- a/rand_test.go +++ b/rand_test.go @@ -17,7 +17,7 @@ func TestRandomGeneratorCollision(t *testing.T) { gen func(t *testing.T) string }{ "MathRandom": { - gen: func(t *testing.T) string { + gen: func(*testing.T) string { return g.GenerateString(10, runesAlpha) }, },