public int[] minHashSignature(Set<Integer> hashedShingles) {
        int[] signatures = new int[numOfHashes];
        for (int i = 0; i < numOfHashes; i++) {
            int min = nextPrime + 1;
            for (int shingle : hashedShingles) {
                shingle = shingle % maxValue;
                int h = (coeffA[i] * shingle + coeffB[i]) % nextPrime;
                if (h < min) {
                    min = h;
                }
            }
            signatures[i] = min;
        }
        return signatures;
    }
Creates a family of universal hash functions.

@param numOfHashes The number of hash functions to generate.
@param seed The seed number used to generate the hash functions.
ache/src/main/java/achecrawler/minhash/MinHasher.java