Return a 16-byte hash for 48 bytes. Quick and dirty. Callers do best to use "random-looking" values for a and b.
| 303 | // Return a 16-byte hash for 48 bytes. Quick and dirty. |
| 304 | // Callers do best to use "random-looking" values for a and b. |
| 305 | static pair<uint64, uint64> WeakHashLen32WithSeeds( |
| 306 | uint64 w, uint64 x, uint64 y, uint64 z, uint64 a, uint64 b) { |
| 307 | a += w; |
| 308 | b = Rotate(b + a + z, 21); |
| 309 | uint64 c = a; |
| 310 | a += x; |
| 311 | a += y; |
| 312 | b += Rotate(a, 44); |
| 313 | return make_pair(a + z, b + c); |
| 314 | } |
| 315 | |
| 316 | // Return a 16-byte hash for s[0] ... s[31], a, and b. Quick and dirty. |
| 317 | static pair<uint64, uint64> WeakHashLen32WithSeeds( |
no test coverage detected