Unverified Commit 341d1c5a authored by alexpott's avatar alexpott
Browse files

Issue #3118581 by kiamlaluno: The documentation for Crypt::randomBytesBase64()...

Issue #3118581 by kiamlaluno: The documentation for Crypt::randomBytesBase64() is wrong about the output length

(cherry picked from commit d2d8fc93)
(cherry picked from commit 192a49e9)
parent b1d19673
...@@ -108,7 +108,8 @@ public static function hashEquals($known_string, $user_string) { ...@@ -108,7 +108,8 @@ public static function hashEquals($known_string, $user_string) {
* The number of random bytes to fetch and base64 encode. * The number of random bytes to fetch and base64 encode.
* *
* @return string * @return string
* The base64 encoded result will have a length of up to 4 * $count. * A base-64 encoded string, with + replaced with -, / with _ and any =
* padding characters removed.
* *
* @see \Drupal\Component\Utility\Crypt::randomBytes() * @see \Drupal\Component\Utility\Crypt::randomBytes()
*/ */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment