1 drupal.inc drupal_random_key($byte_count = 32)

Returns a URL-safe, base64 encoded string of highly randomized bytes (over the full 8-bit range).

Deprecated

since 1.0.0

See also

backdrop_random_key()

Related topics

File

core/includes/drupal.inc, line 266
Contains constants and function wrappers for Drupal 7.x compatibility.

Code

function drupal_random_key($byte_count = 32) {
  return backdrop_random_key($byte_count);
}