Class SeedUtils

java.lang.Object
com.carrotsearch.randomizedtesting.SeedUtils

public final class SeedUtils extends Object
Utilities for parsing random seeds.
  • Field Details

    • HEX

      private static final char[] HEX
  • Constructor Details

    • SeedUtils

      private SeedUtils()
  • Method Details

    • parseSeed

      public static long parseSeed(String seed)
      Parse a single seed. The seed needs to be cleaned up from any surrounding characters.
    • formatSeed

      public static String formatSeed(long seed)
      Format a single seed.
    • parseSeedChain

      public static long[] parseSeedChain(String chain)
      Parse a seed chain formatted with formatSeedChain(Randomness...).
    • formatSeedChain

      public static String formatSeedChain(Randomness... randomnesses)
      Formats randomness seed or seeds into something the user can type in to get predictably repeatable execution.