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