getRandomSalt() public method

Returns a random salt for password hashing.
public getRandomSalt ( ) : string
return string
Ejemplo n.º 1
0
 /**
  * Generates a random salt for the password.
  *
  * @return string
  */
 private function generateSalt()
 {
     return $this->saltGenerator->getRandomSalt();
 }
 /**
  * @return string
  */
 protected function getRandomSalt()
 {
     return $this->saltGenerator->getRandomSalt();
 }