public generateRandomString ( integer $length, string $chars = '' ) : string | ||
$length | integer | Length of the generated string. |
$chars | string | A string containing a list of chars that will be uses for generating the random string. |
return | string | Random string with the given $length containing only the provided set of $chars. |