Why is XOR the default way to combine hashes?
xor is a dangerous default function to use when hashing. It is better than and and or, but that doesn’t say much. xor is symmetric, so the order of the elements is lost. So “bad” will hash combine the same as “dab”. xor maps pairwise identical values to zero, and you should avoid mapping “common” … Read more