Menu
I’ve got a hash algorithm in C# which I’d like to use in JavaScript but I’m having troubles porting it. I’ve located the part which doesn’t produce the correct result:
[CODE]UInt32 a = 682308529;
UInt32 b = 3202212377;
Console.WriteLine(a * b);
The result of this should be 438783561
I’ve tried with lots of bitwise operators but I can’t seem to get the same result. This is the approach I thought should work:
[CODE]var a = 682308529;
var b = 3202212377;
alert(a * b >>> 0);
However, the result of this is 438783488, close to what I expect but not exactly. Any ideas on this are much appreciated!