Skip to content

Commit

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

Update to `math/rand/v2`.

#### Link to tracking issue

Part of
open-telemetry#34676

#### Testing

N/A

#### Documentation

N/A
  • Loading branch information
axw authored and chengchuanpeng committed Jan 26, 2025
1 parent 84d8cdb commit 89e4a04
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 89e4a04

Please sign in to comment.