Class RandomSupplier

java.lang.Object
io.opentelemetry.sdk.internal.RandomSupplier

public final class RandomSupplier extends Object
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 Details

    • RandomSupplier

      private RandomSupplier()
  • Method Details

    • platformDefault

      public static Supplier<Random> platformDefault()
      Returns the platform default for random number generation.

      The underlying implementation attempts to use ThreadLocalRandom on platforms where this is the most efficient.