Class IdGenerator

java.lang.Object
com.google.gerrit.server.util.IdGenerator

public class IdGenerator extends Object
Simple class to produce 4 billion keys randomly distributed.
  • Method Details

    • next

      public int next()
      Produce the next identifier.
    • mix

      public static int mix(int salt, int in)
      A very simple bit permutation to mask a simple incrementer.