From ab6fbefbf7a0d43a3281966d83bc822b822c70ba Mon Sep 17 00:00:00 2001 From: Tobias Rautenkranz Date: Wed, 27 Aug 2025 13:33:12 +0200 Subject: [PATCH] [String] ByteString::fromRandom() defaults to base58 characters The ByteString::fromRandom() function defaults to the base58 characters if the second argument is not supplied. --- components/string.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/string.rst b/components/string.rst index 0cf0583da6c..eb4753d1445 100644 --- a/components/string.rst +++ b/components/string.rst @@ -125,7 +125,7 @@ There are also some specialized constructors:: // ByteString can create a random string of the given length $foo = ByteString::fromRandom(12); - // by default, random strings use A-Za-z0-9 characters; you can restrict + // by default, random strings use base58 characters; you can set // the characters to use with the second optional argument $foo = ByteString::fromRandom(6, 'AEIOU0123456789'); $foo = ByteString::fromRandom(10, 'qwertyuiop');