random helper method generates a random string of the specified
$length. This method internally uses the OpenSSL function
openssl_random_pseudo_bytes, and therefore requires the OpenSSL extension to be installed and configured.
The signature of the
random method is:
public static function random( $length = 16 );
It should also be noted that the
random method remove the following characters: