File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments