Module com.github.f4b6a3.uuid
Class DefaultRandomFunction
- java.lang.Object
-
- com.github.f4b6a3.uuid.factory.function.impl.DefaultRandomFunction
-
- All Implemented Interfaces:
RandomFunction,IntFunction<byte[]>
public final class DefaultRandomFunction extends Object implements RandomFunction
-
-
Field Summary
Fields Modifier and Type Field Description protected static ThreadLocal<SecureRandom>RANDOM
-
Constructor Summary
Constructors Constructor Description DefaultRandomFunction()
-
-
-
Field Detail
-
RANDOM
protected static final ThreadLocal<SecureRandom> RANDOM
-
-
Method Detail
-
apply
public byte[] apply(int length)
- Specified by:
applyin interfaceIntFunction<byte[]>
-
-