Package io.grpc.xds
Class ThreadSafeRandom.ThreadSafeRandomImpl
java.lang.Object
io.grpc.xds.ThreadSafeRandom.ThreadSafeRandomImpl
- All Implemented Interfaces:
ThreadSafeRandom
- Enclosing interface:
ThreadSafeRandom
public static final class ThreadSafeRandom.ThreadSafeRandomImpl
extends Object
implements ThreadSafeRandom
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.grpc.xds.ThreadSafeRandom
ThreadSafeRandom.ThreadSafeRandomImpl
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
instance
-
-
Constructor Details
-
ThreadSafeRandomImpl
private ThreadSafeRandomImpl()
-
-
Method Details
-
nextInt
public int nextInt(int bound) - Specified by:
nextInt
in interfaceThreadSafeRandom
-
nextLong
public long nextLong()- Specified by:
nextLong
in interfaceThreadSafeRandom
-
nextLong
public long nextLong(long bound) - Specified by:
nextLong
in interfaceThreadSafeRandom
-