diff --git a/pkg/announce/announce.go b/pkg/announce/announce.go index baa2f3c..52aecc9 100644 --- a/pkg/announce/announce.go +++ b/pkg/announce/announce.go @@ -355,6 +355,7 @@ func (a *Announce) CreatePacket() []byte { } // Add 5 bytes of timestamp timeBytes := make([]byte, 8) + // #nosec G115 - Unix timestamp is always positive, no overflow risk binary.BigEndian.PutUint64(timeBytes, uint64(time.Now().Unix())) copy(randomHash[5:], timeBytes[:5])