drupal_random_bytes
function drupal_random_bytes
drupal_random_bytes($count)
Returns a string of highly randomized bytes (over the full 8-bit range).
This function is better than simply calling mt_rand() or any other built-in PHP function because it can return a long string of bytes (compared to < 4 bytes normally from mt_rand()) and uses the best available pseudo-random source.
Parameters
$count: The number of characters (bytes) to return in the string.
File
- in