Fix hash function to match node-retricon