Ejemplo n.º 1
0
 /**
  * Generate random password.
  * @param int $length Length of password to be created.
  * @param string|array $pool Character set used to generate password.
  */
 public static function generatePassword($length = self::DEFAULT_RANDOM_STRING_LENGTH, $pool = self::DEFAULT_CHARACTER_SET)
 {
     $r = new Random($pool);
     return $r->generateString($length);
 }