Class RandomAlphaNumericStringGenerator
java.lang.Object
com.amilesend.discogs.connection.RandomAlphaNumericStringGenerator
Utility class to generate random alphanumeric values.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new generator objectRandomAlphaNumericStringGenerator
(byte[] seed) Creates anew generator object with the given seed. -
Method Summary
-
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
Gets the next random string with the given length- Parameters:
length
- the length of the random string- Returns:
- the random string
-