randomString function
Generate a list of random ASCII string of size length
.
Check the HashlibRandom.nextString documentation for more details.
Implementation
@pragma('vm:prefer-inline')
String randomString(
int length, {
bool? lower,
bool? upper,
bool? numeric,
bool? controls,
bool? punctuations,
List<int>? whitelist,
List<int>? blacklist,
RNG generator = RNG.secure,
}) =>
HashlibRandom(generator).nextString(
length,
lower: lower,
upper: upper,
numeric: numeric,
controls: controls,
punctuations: punctuations,
whitelist: whitelist,
blacklist: blacklist,
);