protected static void fill(RandomDistribution.DiscreteRNG rng, byte[] input) {
    for (int i = 0; i < input.length; i++) {
      input[i] = (byte) rng.nextInt();
    }
  }
Test with a very large input (100MB) as a single input buffer.
hbase-common/src/test/java/org/apache/hadoop/hbase/io/compress/CompressionTestBase.java