Pairwise independent hash functions in Java
问题 I'm looking for a quick and easy way to use a (universal) family of pairwise independent hash functions in my Java projects. Ideally, I would have some object UniversalFamily (representing the Family) which would return me objects with a method hash() which hashes integers. Example usage: // use this object to generate pairwise independent hash functions UniversalFamily family = new UniversalFamily(); // these objects represent the pairwise independent hash functions HashF hashF1 = fam