ojhPrime64cor function hashes

int ojhPrime64cor(
  1. Iterable<Rank> ranks
)

64-bit Prime ranks hash

Implementation

int ojhPrime64cor(Iterable<Rank> ranks) {
  int max = 10;
  int h = 1;

  for (Rank r in ranks) {
    max -= 1;
    assert(max >= 0);

    h *= _primes[0x0F & r.index];
  }
  return h;
}