fix: dev: Add missing parenthesis to fxhash

The fxhash implementation had a missing parenthesis that caused it to
diverge from Rust's reference implementation. This commit fixes this.

Closes #5882

Merge branch '5882-fxhash-fix' into 'main'

See merge request isc-projects/bind9!11857
This commit is contained in:
Alessio Podda 2026-04-16 14:48:19 +00:00
commit a8d412ab21

View file

@ -40,7 +40,7 @@
static inline size_t
fx_add_to_hash(size_t hash, size_t i) {
return ISC_ROTATE_LEFT(hash, 5) ^ i * K;
return (ISC_ROTATE_LEFT(hash, 5) ^ i) * K;
}
/*