Package com.google.common.hash
Class Hashing.LinearCongruentialGenerator
java.lang.Object
com.google.common.hash.Hashing.LinearCongruentialGenerator
- Enclosing class:
Hashing
Linear CongruentialGenerator to use for consistent hashing. See
http://en.wikipedia.org/wiki/Linear_congruential_generator
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
state
private long state
-
-
Constructor Details
-
LinearCongruentialGenerator
public LinearCongruentialGenerator(long seed)
-
-
Method Details
-
nextDouble
public double nextDouble()
-