We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a370be5 commit 4168789Copy full SHA for 4168789
internal/compression/adaptive_test.go
@@ -44,9 +44,10 @@ func TestAdaptiveCompressorCompressible(t *testing.T) {
44
SampleHalfLife: 128 * 1024,
45
SamplingSeed: 1,
46
})
47
+ rng := rand.New(rand.NewPCG(0, 0))
48
defer ac.Close()
49
for i := 0; i < 100; i++ {
- data := make([]byte, 512+rand.IntN(64*1024))
50
+ data := make([]byte, 512+rng.IntN(64*1024))
51
for j := range data {
52
data[j] = byte(j / 100)
53
}
0 commit comments