From 89e4a0441245c501fb2bbb7012a9252acf753f72 Mon Sep 17 00:00:00 2001 From: Andrew Wilkins Date: Fri, 24 Jan 2025 23:25:02 +0800 Subject: [PATCH] [chore] [awsfirehosereceiver] use math/rand/v2 (#37465) #### Description Update to `math/rand/v2`. #### Link to tracking issue Part of https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/34676 #### Testing N/A #### Documentation N/A --- .../unmarshaler/cwmetricstream/metricsbuilder_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/receiver/awsfirehosereceiver/internal/unmarshaler/cwmetricstream/metricsbuilder_test.go b/receiver/awsfirehosereceiver/internal/unmarshaler/cwmetricstream/metricsbuilder_test.go index 114554648f7d..938e1b3e6c70 100644 --- a/receiver/awsfirehosereceiver/internal/unmarshaler/cwmetricstream/metricsbuilder_test.go +++ b/receiver/awsfirehosereceiver/internal/unmarshaler/cwmetricstream/metricsbuilder_test.go @@ -4,7 +4,7 @@ package cwmetricstream import ( - "math/rand" + "math/rand/v2" "testing" "time" @@ -208,5 +208,5 @@ func TestResourceMetricsBuilder(t *testing.T) { // testCWMetricValue is a convenience function for creating a test cWMetricValue func testCWMetricValue() *cWMetricValue { - return &cWMetricValue{100, 0, float64(rand.Int63n(100)), float64(rand.Int63n(4))} + return &cWMetricValue{100, 0, float64(rand.Int64N(100)), float64(rand.Int64N(4))} }