Class DefaultRandomStrategy
- java.lang.Object
-
- com.github.f4b6a3.uuid.strategy.random.DefaultRandomStrategy
-
- All Implemented Interfaces:
RandomStrategy
public final class DefaultRandomStrategy extends Object implements RandomStrategy
Strategy that provides random values for random-based UUIDs. It uses a thread local instance ofSecureRandom.
-
-
Field Summary
Fields Modifier and Type Field Description protected static ThreadLocal<SecureRandom>THREAD_LOCAL_RANDOM
-
Constructor Summary
Constructors Constructor Description DefaultRandomStrategy()
-
-
-
Field Detail
-
THREAD_LOCAL_RANDOM
protected static final ThreadLocal<SecureRandom> THREAD_LOCAL_RANDOM
-
-
Method Detail
-
nextBytes
public void nextBytes(byte[] bytes)
- Specified by:
nextBytesin interfaceRandomStrategy
-
-