MCPcopy Index your code
hub / github.com/RustPython/RustPython / keyed_hash

Function keyed_hash

crates/common/src/hash.rs:183–187  ·  view source on GitHub ↗
(key: u64, buf: &[u8])

Source from the content-addressed store, hash-verified

181}
182
183pub fn keyed_hash(key: u64, buf: &[u8]) -> u64 {
184 let mut hasher = SipHasher24::new_with_keys(key, 0);
185 buf.hash(&mut hasher);
186 hasher.finish()
187}

Callers 1

source_hashFunction · 0.85

Calls 2

hashMethod · 0.45
finishMethod · 0.45

Tested by

no test coverage detected