From b8461860b40f721fd9949ceb5c012c46f914445d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 10 Sep 2021 20:11:43 -0400 Subject: Replace CRC32 digest with more modern and appropriate algorithms This makes the hassle of platform-specific code go away, and instead uses portable implementations of relatively standard modern hash algorithms. CRC32 is not great as a hash function anyway, though it is very fast when hardware accelerated. --- benchmark/dict_bench.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'benchmark/dict_bench.c') diff --git a/benchmark/dict_bench.c b/benchmark/dict_bench.c index 3ba33f9..952aae3 100644 --- a/benchmark/dict_bench.c +++ b/benchmark/dict_bench.c @@ -52,7 +52,7 @@ lcg64(const uint64_t i) static uint32_t zix_chunk_hash(const ZixChunk* const chunk) { - return zix_digest_add(zix_digest_start(), chunk->buf, chunk->len); + return zix_digest32(0u, chunk->buf, chunk->len); } static bool -- cgit v1.2.1