Skip to content

Commit

Permalink
random int linter warning
Browse files Browse the repository at this point in the history
  • Loading branch information
korotkov-aerospike committed Aug 11, 2024
1 parent 5d510ec commit 17ac9a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ func NewClient(ac AerospikeClient, opts ...ClientOpt) (*Client, error) {
client := &Client{
aerospikeClient: ac,
logger: slog.Default(),
id: strconv.Itoa(rand.IntN(1000)),
// #nosec G404
id: strconv.Itoa(rand.IntN(1000)),

Check failure on line 142 in client.go

View workflow job for this annotation

GitHub Actions / lint

undefined: rand (typecheck)

Check failure on line 142 in client.go

View workflow job for this annotation

GitHub Actions / lint

undefined: rand (typecheck)
}

// Apply all options to the Client
Expand Down

0 comments on commit 17ac9a2

Please sign in to comment.