lz4 / lz4-java

LZ4 compression for Java
Apache License 2.0
1.09k stars 248 forks source link

Fix the implementation of StreamingXXHash32.asChecksum() #181

Open trazfr opened 2 years ago

trazfr commented 2 years ago

In the Checksum view, we only keep the last 28 bits of the hash instead of the 32 bits of the full hash.

The result is that the 4 first bits are always set to 0 in LZ4Block*Stream. This PR: