Package io.hypersistence.tsid
Class TSID.Factory.IntRandom
java.lang.Object
io.hypersistence.tsid.TSID.Factory.IntRandom
- All Implemented Interfaces:
TSID.Factory.IRandom
- Enclosing class:
TSID.Factory
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static IntSuppliernewRandomFunction(Random random) byte[]nextBytes(int length) intnextInt()
-
Field Details
-
randomFunction
-
-
Constructor Details
-
IntRandom
public IntRandom() -
IntRandom
-
IntRandom
-
-
Method Details
-
nextInt
public int nextInt()- Specified by:
nextIntin interfaceTSID.Factory.IRandom
-
nextBytes
public byte[] nextBytes(int length) - Specified by:
nextBytesin interfaceTSID.Factory.IRandom
-
newRandomFunction
-