pub fn hash_window(hashes: &[u64]) -> u64
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.