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) }, },