generateRandomAlphaNumericString function
Implementation
String generateRandomAlphaNumericString({
int length = 8,
String? seedString,
math.Random? random,
}) {
const chars = 'abcdefghijklmnopqrstuvwxyz1234567890';
final seededRandom =
random ??
(seedString != null
? math.Random(_stableSeed(seedString))
: math.Random());
return String.fromCharCodes(
Iterable.generate(
length,
(_) => chars.codeUnits[seededRandom.nextInt(chars.length)],
),
);
}