Skip to main content

hash_window

Function hash_window 

Source
pub fn hash_window(hashes: &[u64]) -> u64
Expand description

Compute the initial polynomial hash of a window of token hashes. hash = h[0]*BASE^(n-1) + h[1]*BASE^(n-2) + … + h[n-1]*BASE^0 Uses wrapping arithmetic throughout.