Class Hashing.LinearCongruentialGenerator

java.lang.Object
com.google.common.hash.Hashing.LinearCongruentialGenerator
Enclosing class:
Hashing

private static final class Hashing.LinearCongruentialGenerator extends Object
Linear CongruentialGenerator to use for consistent hashing. See http://en.wikipedia.org/wiki/Linear_congruential_generator
  • Field Details

    • state

      private long state
  • Constructor Details

    • LinearCongruentialGenerator

      public LinearCongruentialGenerator(long seed)
  • Method Details

    • nextDouble

      public double nextDouble()