private static int reduce(int hash, int n) {
    // https://lemire.me/blog/2016/06/27/a-fast-alternative-to-the-modulo-reduction/
    return (int)(((hash & 0xffffffffL) * n) >>> 32);
  }
private static int reduce(int hash, int n)