github.com/fluhus/gostuff@v0.4.1-0.20240331134726-be71864f2b5d/rhash/doc.go (about) 1 // Package rhash provides implementations of rolling-hash functions. 2 // 3 // A rolling-hash is a hash function that "remembers" only the last n bytes it 4 // received, where n is a parameter. Meaning, the hash of a byte sequence 5 // always equals the hash of its last n bytes. 6 package rhash