public hex ([mixed $len])
Generates a random hex string If $len is not specified, 16 is assumed. It may be larger in future. The length of the result string is usually greater of $len.
$random = new \Phalcon\Security\Random(); echo $random->hex(10); // a29f470508d5ccb8e289
Please login to continue.