nextInt method

int nextInt()

Gets the next value as an integer.

Implementation

int nextInt() {
  _tracker.increment();
  return ((_tracker.timestamp - _epochOffset) << _timeShiftBits) +
      (machineId << sequenceBits) +
      _tracker.sequence;
}