From 8cf2358fb1f1977c69272c1ad3446569caebe04a Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Fri, 30 Jun 2023 06:39:20 +0200 Subject: [PATCH] [PR #6691/89ad18d1 backport][stable-6] random_string docs to say it's cryptographically secure (#6815) 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 199aa13964..8d53e1802b 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.