public class DietzfelbingerHash extends Object
Constructor and Description |
---|
DietzfelbingerHash(int hashSize,
Random random)
Creates a Dietzfelbinger hash function.
|
Modifier and Type | Method and Description |
---|---|
int |
hash(long value)
Dietzfelbinger hash function.
|
void |
nextHashFunction()
Generates a new Dietzfelbinger hash function.
|
public DietzfelbingerHash(int hashSize, Random random)
hashSize
- size of the hash function (must be smaller than 31)random
- instance to generate a stream of pseudorandom numbersCopyright © 2019 University of Waikato, Hamilton, NZ. All Rights Reserved.