Package io.opentelemetry.sdk.internal
Class RandomSupplier
java.lang.Object
io.opentelemetry.sdk.internal.RandomSupplier
Provides random number generater constructor utilities.
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the platform default for random number generation.
-
Constructor Details
-
RandomSupplier
private RandomSupplier()
-
-
Method Details
-
platformDefault
Returns the platform default for random number generation.The underlying implementation attempts to use
ThreadLocalRandom
on platforms where this is the most efficient.
-