drupal_random_key() documentation for length of returned string is wrong

Created on 8 June 2016, over 8 years ago
Updated 17 June 2024, 6 months ago

The documentation says "The base64 encoded result will have a length of up to 4 * $byte_count."

This is wrong. I think it is always exactly ceil($byte_count * 4 / 3).

Note that drupal_base64_encode() removes the padding equal signs.

🐛 Bug report
Status

Fixed

Version

7.0 ⚰️

Component
Documentation 

Last updated 1 day ago

No maintainer
Created by

🇺🇸United States tetranz

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024