Closed Wu-Hao closed 11 years ago
Uh - hashPair(a, b) == hashPair(b, a)
no it doesnt in js code
for example collision type 1 and 2.
you created a hashpair["1 2"] notice that it is a string
"1 2" !== "2 1"
Ok, i was working on a older version of the code, it seams that you fixed it with var hashPair = function(a, b) { //assert(typeof(a) === 'number', "HashPair used on something not a number"); return a < b ? a + ' ' + b : b + ' ' + a; };
so indeed, hashPair(a, b) == hashPair(b, a)
Yep :)
Fix collision callback that sometimes don't register or delayed