original_string: public static function generateRandom($length = 16)
      {
          $keys = array_merge(range('A','Z'), range(2,7)); // No padding char
  
          $string = '';
  
          for ($i = 0; $i < $length; $i++) {
              $string .= $keys[random_int(0, 31)];
          }
  
          return $string;
      }
code: public static function generateRandom($length = 16)
      {
          $keys = array_merge(range('A','Z'), range(2,7)); // No padding char
  
          $string = '';
  
          for ($i = 0; $i < $length; $i++) {
              $string .= $keys[random_int(0, 31)];
          }
  
          return $string;
      }
code_tokens: public static function generateRandom ( $ length = 16 ) { $ keys = array_merge ( range ( 'A' , 'Z' ) , range ( 2 , 7 ) ) ; // No padding char $ string = '' ; for ( $ i = 0 ; $ i < $ length ; $ i ++ ) { $ string .= $ keys [ random_int ( 0 , 31 ) ] ; } return $ string ; }
docstring: Creates a pseudo random Base32 string
  
  This could decode into anything. It's located here as a small helper
  where code that might need base32 usually also needs something like this.
  
  @param integer $length Exact length of output string
  
  @return string Base32 encoded random
docstring_tokens: Creates a pseudo random Base32 string