Package io.hypersistence.tsid
Class TSID.Factory.ByteRandom
java.lang.Object
io.hypersistence.tsid.TSID.Factory.ByteRandom
- All Implemented Interfaces:
TSID.Factory.IRandom
- Enclosing class:
TSID.Factory
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static IntFunction<byte[]> newRandomFunction(Random random) byte[]nextBytes(int length) intnextInt()
-
Field Details
-
randomFunction
-
-
Constructor Details
-
ByteRandom
public ByteRandom() -
ByteRandom
-
ByteRandom
-
-
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
-