Package com.unboundid.util
Class ThreadLocalSecureRandom
java.lang.Object
com.unboundid.util.ThreadLocalSecureRandom
@ThreadSafety(level=COMPLETELY_THREADSAFE)
public final class ThreadLocalSecureRandom
extends Object
This class provides a means of obtaining a thread-local
SecureRandom
instance that can be used without synchronization or contention.-
Method Summary
Modifier and TypeMethodDescriptionstatic SecureRandomget()Retrieves a thread-localSecureRandominstance.
-
Method Details
-
get
Retrieves a thread-localSecureRandominstance.- Returns:
- A thread-local
SecureRandominstance.
-