diff options
| author | Cody Logan <clpo13@gmail.com> | 2020-01-08 10:16:58 -0800 |
|---|---|---|
| committer | Cody Logan <clpo13@gmail.com> | 2020-01-08 10:16:58 -0800 |
| commit | 21d800b1bfec1b3ca2fbd4cce8b8ade507c6382a (patch) | |
| tree | 35a1695908690b1048fa180f07f62abdc702b41a /alphanum/alphanum.py | |
| parent | f599b85ba5a5fe7123e0d77bf7b9f6c738471bc8 (diff) | |
| download | alphanum-21d800b1bfec1b3ca2fbd4cce8b8ade507c6382a.tar.gz alphanum-21d800b1bfec1b3ca2fbd4cce8b8ade507c6382a.zip | |
Link Python stdlib docsv0.2.0
Diffstat (limited to 'alphanum/alphanum.py')
| -rw-r--r-- | alphanum/alphanum.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/alphanum/alphanum.py b/alphanum/alphanum.py index 6f7c103..3f16d3c 100644 --- a/alphanum/alphanum.py +++ b/alphanum/alphanum.py @@ -8,12 +8,12 @@ POP = string.ascii_letters + string.digits def generate(length: int = 1) -> str: - """Generates a random string of alphanumeric characters of the given length + """Generates a random string of alphanumeric characters of the given length. If no length is specified, a single character is returned. - On Python 3.5, this string is pseudo-randomly generated using the random - module. With 3.6 and later, the randomness is generated with the secrets - module, making the randomization cryptographically strong. + On Python 3.5, this string is pseudo-randomly generated using + :py:mod:`random`. With 3.6 and later, the randomness is generated with + :py:mod:`secrets`, making the randomization cryptographically strong. Args: length (:obj:`int`, optional): Desired string length. Defaults to 1. |
