Skip to content

Commit

Permalink
Fix linter errors
Browse files Browse the repository at this point in the history
golangci-lint upgrade to v1.56.2 added more checks

Relates to pion/.goassets#201
  • Loading branch information
Sean-Der committed Mar 16, 2024
1 parent 3f60889 commit 21cadbe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion math.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion rand_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
},
},
Expand Down

0 comments on commit 21cadbe

Please sign in to comment.