This function simply forwards to the PHP random_bytes function.
public static getRandomBytes ( integer $length = 16, boolean $secure = true, boolean $raw = true, string $startEntropy = "", &$rounds, &$drop ) : string | ||
$length | integer | default 16, Number of bytes to generate |
$secure | boolean | default true, Generate secure distilled bytes, slower |
$raw | boolean | default true, returns a binary string if true, or an hexadecimal one |
$startEntropy | string | default null, adds more initial entropy |
return | string |