v0.5.1
Modules affected
random
[NEW]
Description
This release introduces a new module random
, which exposes utility functions for generating random items.
random.RandomString
can be used for generating random strings of specified lengths, pooling from a set of allowed characters passed into the function. For example, to generate a 32 char string only composing of digits, you can dorandom.RandomString(32, random.Digits)
. Additionally, you can dorandom.RandomString(32, random.LowerLetters + random.SpecialChars)
to generate a 32 char string composing of lowercase letters (a-z
) and special characters.