Skip to main content

key_hash

Function key_hash 

Source
pub fn key_hash(key: &[u8]) -> u32
Expand description

Returns the hash the game gives a table key (FUN_100e9730 in Thrones): the bytes from last to first, each sign-extended and xored in at a shift that cycles through 0, 8, 16 and 24 bits.