]> git.ipfire.org Git - thirdparty/git.git/commit
bloom: add test helper to return murmur3 hash
authorLidong Yan <yldhome2d2@gmail.com>
Sat, 12 Jul 2025 09:35:13 +0000 (17:35 +0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 14 Jul 2025 17:03:02 +0000 (10:03 -0700)
commit4ca70179020b6a33bb5334302e7c79faf7eeaf52
tree198f5b0b491055cf3595e3f49671f4e230d71d54
parent16bd9f20a403117f2e0d9bcda6c6e621d3763e77
bloom: add test helper to return murmur3 hash

In bloom.h, murmur3_seeded_v2() is exported for the use of test murmur3
hash. To clarify that murmur3_seeded_v2() is exported solely for testing
purposes, a new helper function test_murmur3_seeded() was added instead
of exporting murmur3_seeded_v2() directly.

Signed-off-by: Lidong Yan <502024330056@smail.nju.edu.cn>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
bloom.c
bloom.h
t/helper/test-bloom.c