With base b and modulus q the update is h = ((h - old * b^(m-1)) * b + new) mod q. Equal windows always give equal hashes; different windows may too (a collision).