From c2ae3dd0260b98487f65dc578bc5ac1ea9f4fd82 Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Fri, 30 Jun 2023 06:39:17 +0200 Subject: [PATCH] [PR #6691/89ad18d1 backport][stable-7] random_string docs to say it's cryptographically secure (#6816) random_string docs to say it's cryptographically secure (#6691) Modify random_string docs to state that randomness is cryptographically secure (cherry picked from commit 89ad18d1a78534ff9867e30f3322a5cf565b2ce7) Co-authored-by: Matthew Davis <7035647+mdavis-xyz@users.noreply.github.com> --- plugins/lookup/random_string.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/lookup/random_string.py b/plugins/lookup/random_string.py index 89333492ad..3e873e1cf1 100644 --- a/plugins/lookup/random_string.py +++ b/plugins/lookup/random_string.py @@ -16,6 +16,8 @@ DOCUMENTATION = r""" version_added: '3.2.0' description: - Generates random string based upon the given constraints. + - Uses L(random.SystemRandom,https://docs.python.org/3/library/random.html#random.SystemRandom), + so should be strong enough for cryptographic purposes. options: length: description: The length of the string.