Class 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  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double nextDouble()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • state

        private long state
    • Constructor Detail

      • LinearCongruentialGenerator

        public LinearCongruentialGenerator​(long seed)
    • Method Detail

      • nextDouble

        public double nextDouble()