Skip to content

Commit c2be2d0

Browse files
committed
bug symfony#21324 [String] ByteString::fromRandom() defaults to base58 characters (aunzat)
This PR was merged into the 6.4 branch. Discussion ---------- [String] `ByteString::fromRandom()` defaults to base58 characters The ByteString::fromRandom() function defaults to the base58 characters if the second argument is not supplied. The default was changed to base58 in: symfony/symfony@b36baa7 This updates the documentation to reflect this change. Commits ------- ab6fbef [String] ByteString::fromRandom() defaults to base58 characters
2 parents 2e76301 + ab6fbef commit c2be2d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/string.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ There are also some specialized constructors::
125125

126126
// ByteString can create a random string of the given length
127127
$foo = ByteString::fromRandom(12);
128-
// by default, random strings use A-Za-z0-9 characters; you can restrict
128+
// by default, random strings use base58 characters; you can set
129129
// the characters to use with the second optional argument
130130
$foo = ByteString::fromRandom(6, 'AEIOU0123456789');
131131
$foo = ByteString::fromRandom(10, 'qwertyuiop');

0 commit comments

Comments
 (0)