Class RandomAlphaNumericStringGenerator

java.lang.Object
com.amilesend.discogs.connection.RandomAlphaNumericStringGenerator

public class RandomAlphaNumericStringGenerator extends Object
Utility class to generate random alphanumeric values.
  • Constructor Details

    • RandomAlphaNumericStringGenerator

      public RandomAlphaNumericStringGenerator()
      Creates a new generator object
    • RandomAlphaNumericStringGenerator

      public RandomAlphaNumericStringGenerator(byte[] seed)
      Creates anew generator object with the given seed.
      Parameters:
      seed - the seed
  • Method Details

    • next

      public String next(int length)
      Gets the next random string with the given length
      Parameters:
      length - the length of the random string
      Returns:
      the random string