Exemplo n.º 1
0
 public static int chunk(byte[] key, int numChunks) {
   // max handles abs(Integer.MIN_VALUE)
   return Math.max(0, Math.abs(ByteUtils.readInt(key, 0))) % numChunks;
 }