Skip to content

Commit

Permalink
fix: add nolint for rand.Int
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorEulalio committed Nov 7, 2024
1 parent a83483f commit f71b74e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/dice/uninstrumented/rolldice.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
)

func rolldice(w http.ResponseWriter, r *http.Request) {
roll := 1 + rand.Intn(6)
roll := 1 + rand.Intn(6) //nolint:gosec // G404: Use of weak random number generator (math/rand instead of crypto/rand) is ignored as this is not security-sensitive.

var msg string
if player := r.PathValue("player"); player != "" {
Expand Down

0 comments on commit f71b74e

Please sign in to comment.