Package com.google.common.hash
Class Hashing.LinearCongruentialGenerator
- java.lang.Object
-
- com.google.common.hash.Hashing.LinearCongruentialGenerator
-
- Enclosing class:
- Hashing
private static final class Hashing.LinearCongruentialGenerator extends java.lang.Object
Linear CongruentialGenerator to use for consistent hashing. See http://en.wikipedia.org/wiki/Linear_congruential_generator
-
-
Field Summary
Fields Modifier and Type Field Description private long
state
-
Constructor Summary
Constructors Constructor Description LinearCongruentialGenerator(long seed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
nextDouble()
-