From: Mathias Gibbens Description: Greatly reduce entropy in compression tests Forwarded: https://github.com/peterbourgon/diskv/issues/79 diff --git a/compression_test.go b/compression_test.go index 2d61420..0e7344a 100644 --- a/compression_test.go +++ b/compression_test.go @@ -24,7 +24,7 @@ func testCompressionWith(t *testing.T, c Compression, name string) { sz := 4096 val := make([]byte, sz) for i := 0; i < sz; i++ { - val[i] = byte('a' + rand.Intn(26)) // {a-z}; should compress some + val[i] = byte('a' + rand.Intn(4)) // {a-d}; should compress some } key := "a"