diff --git a/internal/cmd/command.go b/internal/cmd/command.go index 557fd6f..b412396 100644 --- a/internal/cmd/command.go +++ b/internal/cmd/command.go @@ -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)