Replace hashCode with checksum

Hash codes are not collision free, so what we
actually need is a checksum.