fix(official): 修正官方 hash 校验算法

This commit is contained in:
2026-07-15 22:30:33 +08:00
parent 9e83bbea11
commit 60b8339ecb
3 changed files with 39 additions and 14 deletions
@@ -787,9 +787,9 @@ fn round(acc: u32, input: u32) -> u32 {
fn avalanche(mut hash: u32) -> u32 {
hash ^= hash >> 15;
hash = hash.wrapping_mul(0x85EB_CA6B);
hash = hash.wrapping_mul(0x85EB_CA77);
hash ^= hash >> 13;
hash = hash.wrapping_mul(0xC2B2_AE35);
hash = hash.wrapping_mul(0xC2B2_AE3D);
hash ^= hash >> 16;
hash
}