Package com.google.gerrit.server.util
Class IdGenerator
java.lang.Object
com.google.gerrit.server.util.IdGenerator
Simple class to produce 4 billion keys randomly distributed.
-
Method Summary
-
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.
-