Skip to content

Commit

Permalink
Add nolint for rand deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ycombinator committed Feb 2, 2024
1 parent 9f737ec commit 25263f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libbeat/cmd/instance/beat.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ func initRand() {
} else {
seed = n.Int64()
}
rand.Seed(seed)
rand.Seed(seed) //nolint:staticcheck // need seed from cryptographically strong PRNG.
}

// Run initializes and runs a Beater implementation. name is the name of the
Expand Down

0 comments on commit 25263f7

Please sign in to comment.