mirror of
https://github.com/Yuyi-Oak/BlueArchiveToolkit.git
synced 2026-07-22 04:06:44 +08:00
fix(official): 修正官方 hash 校验算法
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user