ojhPrime64co function hashes

int ojhPrime64co(
  1. Iterable<Card> cards
)

64-bit Prime hash

Implementation

int ojhPrime64co(Iterable<Card> cards) {
  int max = 7;
  int h = 1;

  for (Card c in cards) {
    max -= 1;
    assert(max >= 0);

    h *= _primes[0x3F & c.index];
  }
  return h;
}