Skip to content

Commit

Permalink
Suppress md5 since we document safety
Browse files Browse the repository at this point in the history
  • Loading branch information
alexweav committed Jan 17, 2025
1 parent 8d63bd0 commit b83519f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/alertmanager/alertmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ func buildReceiverIntegrations(nc config.Receiver, tmpl *template.Template, fire
}

func md5HashAsMetricValue(data []byte) float64 {
sum := md5.Sum(data)
sum := md5.Sum(data) //nolint:gosec
// We only want 48 bits as a float64 only has a 53 bit mantissa.
smallSum := sum[0:6]
var bytes = make([]byte, 8)
Expand Down

0 comments on commit b83519f

Please sign in to comment.