From 21d800b1bfec1b3ca2fbd4cce8b8ade507c6382a Mon Sep 17 00:00:00 2001 From: Cody Logan Date: Wed, 8 Jan 2020 10:16:58 -0800 Subject: Link Python stdlib docs --- alphanum/__init__.py | 2 +- alphanum/alphanum.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'alphanum') diff --git a/alphanum/__init__.py b/alphanum/__init__.py index 278216d..5736c89 100644 --- a/alphanum/__init__.py +++ b/alphanum/__init__.py @@ -1,3 +1,3 @@ from .alphanum import generate # noqa: F401 -__version__ = '0.2.0.dev2' +__version__ = '0.2.0' 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. -- cgit v1.2.3