Skip to main content

pedal_hash

Function pedal_hash 

Source
pub fn pedal_hash(text: &str) -> u32
Expand description

Compute the 32-bit FNV-1a hash of text.

Used to fingerprint the .pedal source so stale .pksc files can be detected at load time.

ยงExample

use pedalkernel::precompute::pedal_hash;
let h = pedal_hash("hello");
assert_ne!(h, pedal_hash("world"));