且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

请解释一下杂音哈希?

更新时间:2023-11-09 23:30:58

在code可这里。 m和r是所使用的算法的常数。 K * = m表示采取变量k和多种它用m。 K ^ = K >> R意指采取k和右移位比特r地方(例如,如果r是2 110101将变得001101),然后用K XOR它

The code is available here . m and r are constants used by the algorithm. k *= m means take variable k and multiple it by m. k ^= k >> r means take k and right shift the bits r places (e.g. if r is 2 110101 would become 001101) and then XOR it with k.

希望给你足够的工作,通过各地。

Hope that gives you enough to work through the rest.

问候