luna.util package¶
Submodules¶
Module contents¶
- new_random_string(size=32, chars='ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789')[source]¶
Generate a new random string of size
size
containing only the characters provided inchars
.- Parameters
size (int, optional) – The size of the new string. The default value is 32.
chars (iterable, optional) – A sequence of characters to choose from. The default value is ‘ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789’.
- Returns
random_string – The new random string.
- Return type