Skip to content

Commit ab6fbef

Browse files
authored
[String] ByteString::fromRandom() defaults to base58 characters
The ByteString::fromRandom() function defaults to the base58 characters if the second argument is not supplied.
1 parent 2e76301 commit ab6fbef

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)