]> git.ipfire.org Git - thirdparty/zstd.git/commit
Add salt into row hash (#3528 part 2) (#3533)
authorYonatan Komornik <11005061+yoniko@users.noreply.github.com>
Mon, 13 Mar 2023 22:34:13 +0000 (15:34 -0700)
committerGitHub <noreply@github.com>
Mon, 13 Mar 2023 22:34:13 +0000 (15:34 -0700)
commit91f4c23e634a1d260f290f00b6d870a56cd59ab6
treed7a4a389b8f28bc52f8db98bf33c15aba36e036f
parent9420bce8a491e21821c4b372f837bf4bd47e5870
Add salt into row hash (#3528 part 2) (#3533)

Part 2 of #3528

Adds hash salt that helps to avoid regressions where consecutive compressions use the same tag space with similar data (running zstd -b5e7 enwik8 -B128K reproduces this regression).
lib/common/bits.h
lib/compress/zstd_compress.c
lib/compress/zstd_compress_internal.h
lib/compress/zstd_lazy.c