openssl_random_pseudo_bytes
Generate a pseudo-random string
&reftitle.description;
boolopenssl_random_pseudo_bytes
stringlength
stringstrong
openssl_random_pseudo_bytes returns a &string; with
length caracters. It also indicates if it has used
a strong algorithm to produce those pseudo-random bytes in the second argument.
&reftitle.parameters;
length
The length of the desired string. Must be a positive integer. PHP will
try to cast this parameter to a non-null integer to use it.
strong
If a strong algorithm was used, or not, as a boolean.
This parameter will be &null; if an error occurrs.
&reftitle.returnvalues;
Returns the generated &string; in case of success, &return.falseforfailure;.
&reftitle.examples;
openssl_random_pseudo_bytes example
]]>
&example.outputs.similar;