Skip to content

v0.5.1

Choose a tag to compare

@yorinasub17 yorinasub17 released this 13 Aug 19:10
· 57 commits to master since this release
2b40fc3

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 do random.RandomString(32, random.Digits). Additionally, you can do random.RandomString(32, random.LowerLetters + random.SpecialChars) to generate a 32 char string composing of lowercase letters (a-z) and special characters.

Related links