Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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]
176
pub fn hash_str(value: &str) -> u32 {
177
hash_bytes(value.as_bytes())
178
}
179
180
#[inline]
181
pub fn hash64_bytes(bytes: &[u8]) -> u64 {
Callers
1
random_api_typecheck_and_forward
Function · 0.85
Calls
2
hash_bytes
Function · 0.85
as_bytes
Method · 0.45
Tested by
1
random_api_typecheck_and_forward
Function · 0.68