Skip to content

Commit 22250a0

Browse files
authored
Merge pull request #156675 from mgartner/backport25.4-156405
release-25.4: kvcoord: hard-code seed in BenchmarkTruncateLoop
2 parents bdc13a5 + 80e167e commit 22250a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/kv/kvclient/kvcoord/batch_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,14 +642,14 @@ func BenchmarkTruncateLoop(b *testing.B) {
642642
defer leaktest.AfterTest(b)()
643643
defer log.Scope(b).Close(b)
644644

645-
rng, _ := randutil.NewTestRand()
646645
const keyLength = 8
647646
for _, scanDir := range []ScanDirection{Ascending, Descending} {
648647
for _, mustPreserveOrder := range []bool{false, true} {
649648
for _, numRequests := range []int{128, 16384} {
650649
for _, numRanges := range []int{4, 64} {
651650
// We'll split the whole key space into numRanges ranges
652651
// using random numRanges-1 split points.
652+
rng := randutil.NewTestRandWithSeed(51)
653653
rangeSpans := makeRanges(rng, numRanges, keyLength)
654654
if scanDir == Descending {
655655
// Reverse all the range spans for the Descending scan

0 commit comments

Comments
 (0)