Skip to content

Commit

Permalink
fmt again
Browse files Browse the repository at this point in the history
  • Loading branch information
defo89 committed Apr 16, 2024
1 parent 876affc commit 201a6a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/cmd/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ func init() {
os.Exit(1)
}

rsource := rand.NewSource(time.Now().UnixNano()) //nolint:gosec // Ignoring G404: Use of weak random number generator (math/rand instead of crypto/rand)
rng := rand.New(rsource)
rsource := rand.NewSource(time.Now().UnixNano())
rng := rand.New(rsource) //nolint:gosec // Ignoring G404: Use of weak random number generator (math/rand instead of crypto/rand)
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 201a6a3

Please sign in to comment.