Module com.github.f4b6a3.uuid
Package com.github.f4b6a3.uuid.factory
Interface AbstRandomBasedFactory.IRandom
-
- All Known Implementing Classes:
AbstRandomBasedFactory.FastRandom,AbstRandomBasedFactory.SafeRandom
- Enclosing class:
- AbstRandomBasedFactory
protected static interface AbstRandomBasedFactory.IRandomInterface for random generator.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]nextBytes(int length)Return a random array of bytes.longnextLong()Return a random number.longnextLong(int length)Return a random number.
-
-
-
Method Detail
-
nextLong
long nextLong()
Return a random number.- Returns:
- a number
-
nextLong
long nextLong(int length)
Return a random number.- Parameters:
length- the byte array length- Returns:
- a number
-
nextBytes
byte[] nextBytes(int length)
Return a random array of bytes.- Parameters:
length- the byte array length- Returns:
- an array
-
-