Minor sanity check in generateHash()