summaryrefslogtreecommitdiff
path: root/internal/statsengine/bench_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/statsengine/bench_test.go')
-rw-r--r--internal/statsengine/bench_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/statsengine/bench_test.go b/internal/statsengine/bench_test.go
index 646bdda..99d5c87 100644
--- a/internal/statsengine/bench_test.go
+++ b/internal/statsengine/bench_test.go
@@ -1,7 +1,7 @@
package statsengine
import (
- "math/rand"
+ "math/rand/v2"
"testing"
"time"
@@ -9,7 +9,7 @@ import (
)
func BenchmarkSyscallAccumulatorSnapshot(b *testing.B) {
- acc := newSyscallAccumulatorWithConfig(10_000, rand.New(rand.NewSource(123)))
+ acc := newSyscallAccumulatorWithConfig(10_000, rand.New(rand.NewPCG(123, 0)))
traceIDs := []types.TraceId{
types.SYS_ENTER_READ,
types.SYS_ENTER_WRITE,