Utils¶
Utility functions
- saltfactories.utils.random_string(prefix, size=6, uppercase=True, lowercase=True, digits=True)[source]¶
Generates a random string.
- Parameters
prefix (str) – The prefix for the random string
size (int) – The size of the random string
uppercase (bool) – If true, include upper-cased ascii chars in choice sample
lowercase (bool) – If true, include lower-cased ascii chars in choice sample
digits (bool) – If true, include digits in choice sample
- Return str
The random string