Skip to content

Commit

Permalink
[chore] [awsfirehosereceiver] use math/rand/v2
Browse files Browse the repository at this point in the history
  • Loading branch information
axw committed Jan 24, 2025
1 parent a05740a commit b4da710
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
package cwmetricstream

import (
"math/rand"
"math/rand/v2"
"testing"
"time"

Expand Down Expand Up @@ -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))}
}

0 comments on commit b4da710

Please sign in to comment.