lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> > In digestblock function there is a line: H[1] = band(H[1] + a).

> I'm not sure about this, but I've heard of people doing similar things
> in JavaScript to force the native Number type to a 32-bit integer,
> taking overflow into account correctly, etc.

That's what the comment says:
	-- Add (mod 2^32) this chunk's hash to result so far: