Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
defo89 committed Apr 16, 2024
1 parent 85596e0 commit 876affc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/cmd/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func init() {
}

rsource := rand.NewSource(time.Now().UnixNano()) //nolint:gosec // Ignoring G404: Use of weak random number generator (math/rand instead of crypto/rand)

Check failure on line 62 in internal/cmd/command.go

View workflow job for this annotation

GitHub Actions / Build & Lint

directive `//nolint:gosec // Ignoring G404: Use of weak random number generator (math/rand instead of crypto/rand)` is unused for linter "gosec" (nolintlint)
rng := rand.New(rsource) //nolint:gosec // Ignoring G404: Use of weak random number generator (math/rand instead of crypto/rand)
rng := rand.New(rsource)
cfg.RandDelay = rng.Intn(1000) + 1000

metrics.Registry.MustRegister(metr.SentError, metr.Error, metr.ArpResolveError, metr.SentPacketsPeer, metr.SentPackets, metr.RecvPackets, metr.CallbackDuration)
Expand Down

0 comments on commit 876affc

Please sign in to comment.