Skip to content

Commit 73d930e

Browse files
committed
docs: update docs
1 parent bb7204d commit 73d930e

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

user_guide_src/source/changelogs/v4.3.3.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ SECURITY
1313
********
1414

1515
- **Email:** Added missing TLS 1.3 support.
16-
- **Text Helper:** The :php:func:`random_string()` type **numeric** is now cryptographically secure.
16+
- **Text Helper:** The :php:func:`random_string()` type **alpha**, **alnum**,
17+
**numeric** and **nozero** are now cryptographically secure.
1718

1819
BREAKING
1920
********

user_guide_src/source/helpers/text_helper.rst

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ 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 **numeric** and **crypto**, no cryptographically secure
33+
.. warning:: Except for type **alpha**, **alnum**, **numeric**, **nozero**,
34+
and **crypto**, no cryptographically secure
3435
strings are generated. Therefore, it must not be used for cryptographic
3536
purposes or purposes that requires return values to be unguessable.
3637

@@ -49,8 +50,10 @@ The following functions are available:
4950
.. note:: When you use **crypto**, you must set an even number to the second parameter.
5051
Since v4.2.2, if you set an odd number, ``InvalidArgumentException`` will be thrown.
5152

52-
.. note:: Since v4.3.3, **numeric** uses ``random_int()``. In the previous
53-
versions, it used ``str_shuffle()`` that is not cryptographically secure.
53+
.. note:: Since v4.3.3, **alpha**, **alnum** and **nozero** use ``random_byte()``,
54+
and **numeric** uses ``random_int()``.
55+
In the previous versions, it used ``str_shuffle()`` that is not
56+
cryptographically secure.
5457

5558
Usage example:
5659

0 commit comments

Comments
 (0)