diff --git a/CHANGES.txt b/CHANGES.txt index 90b830c1cdd..febe57d52c3 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,4 +1,10 @@ HBase Change Log +Release 0.20.0 - Unreleased + INCOMPATIBLE CHANGES + + BUG FIXES + HBASE-1136 HashFunction inadvertently destroys some randomness + Release 0.19.0 - Unreleased INCOMPATIBLE CHANGES HBASE-885 TableMap and TableReduce should be interfaces diff --git a/build.xml b/build.xml index 96d5c684394..a55819446f3 100644 --- a/build.xml +++ b/build.xml @@ -18,7 +18,7 @@ --> - + diff --git a/src/java/org/onelab/filter/HashFunction.java b/src/java/org/onelab/filter/HashFunction.java index a0c26964e2f..cf97c7bcaa2 100644 --- a/src/java/org/onelab/filter/HashFunction.java +++ b/src/java/org/onelab/filter/HashFunction.java @@ -118,7 +118,8 @@ public final class HashFunction { } int[] result = new int[nbHash]; for (int i = 0, initval = 0; i < nbHash; i++) { - initval = result[i] = Math.abs(hashFunction.hash(b, initval) % maxValue); + initval = hashFunction.hash(b, initval); + result[i] = Math.abs(initval) % maxValue; } return result; }//end hash()