MCPcopy Create free account
hub / github.com/PerroEngine/Perro / hash_str

Function hash_str

perro_source/api_modules/perro_modules/src/random.rs:176–178  ·  view source on GitHub ↗
(value: &str)

Source from the content-addressed store, hash-verified

174
175#[inline]
176pub fn hash_str(value: &str) -> u32 {
177 hash_bytes(value.as_bytes())
178}
179
180#[inline]
181pub fn hash64_bytes(bytes: &[u8]) -> u64 {

Callers 1

Calls 2

hash_bytesFunction · 0.85
as_bytesMethod · 0.45

Tested by 1