Skip to content

Commit

Permalink
Adjust to golangci-lint 1.58.2
Browse files Browse the repository at this point in the history
...regarding use of math/rand over crypto/rand.

Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
  • Loading branch information
tpantelis authored and skitt committed May 27, 2024
1 parent 807a0de commit bb9498c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/natdiscovery/natdiscovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ func newNATDiscovery(localEndpoint *endpoint.Local) (*natDiscovery, error) {
return nil, errors.Wrap(err, "error parsing nat discovery port")
}

//nolint:gosec // Use of math/rand over crypto/rand is fine here as the request counter is not security-sensitive.
return &natDiscovery{
localEndpoint: localEndpoint,
serverPort: ndPort,
Expand Down

0 comments on commit bb9498c

Please sign in to comment.