divad12/web-search-experiment — Issue #2: The hash(const char* A, int len) function is incorrect
Author: aidanhs
Created: 2011-12-26 16:46:16+00:00
State: open

Called with equivalent arguments to hash(const char* A, const int offset, const int length, unsigned long long w) i.e.
```rh->hash(bytes, bytes_size);
rh->hash(bytes, 0, bytes_size, 0);```
the return values should be the same. They aren't.

This is possibly because the hash/2 function was converted line by line from the original Java code without noting that Java chars are 16 bits and therefore != C++ chars.

I believe hash/2 should be converted to a wrapper for hash/4.