Skip to content

Commit 8072c8d

Browse files
authored
Merge pull request #7333 from kenjis/fix-docs-random_string
docs: add warning to random_string()
2 parents e1c13f6 + 2cbbda7 commit 8072c8d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

user_guide_src/source/helpers/text_helper.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ The following functions are available:
3030
Generates a random string based on the type and length you specify.
3131
Useful for creating passwords or generating random hashes.
3232

33+
.. warning:: Except for type **crypto**, no cryptographically secure
34+
strings are generated. Therefore, it must not be used for cryptographic
35+
purposes or purposes that requires return values to be unguessable.
36+
3337
The first parameter specifies the type of string, the second parameter
3438
specifies the length. The following choices are available:
3539

0 commit comments

Comments
 (0)