Skip to content

Commit

Permalink
[chore] [awsfirehosereceiver] use math/rand/v2 (#37465)
Browse files Browse the repository at this point in the history
#### Description

Update to `math/rand/v2`.

#### Link to tracking issue

Part of
#34676

#### Testing

N/A

#### Documentation

N/A
  • Loading branch information
axw authored Jan 24, 2025
1 parent 818ad2c commit de003ec
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 de003ec

Please sign in to comment.