source/Core/PasswordSaltGenerator.php
public function generate()
    {
        if ($this->_getOpenSSLFunctionalityChecker()->isOpenSslRandomBytesGeneratorAvailable()) {
            $sSalt = bin2hex(openssl_random_pseudo_bytes(16));
        } else {
            $sSalt = $this->_customSaltGenerator();
        }

        return $sSalt;
    }
public function generate()
    {
        if ($this->_getOpenSSLFunctionalityChecker()->isOpenSslRandomBytesGeneratorAvailable()) {
            $sSalt = bin2hex(openssl_random_pseudo_bytes(16));
        } else {
            $sSalt = $this->_customSaltGenerator();
        }

        return $sSalt;
    }
public function generate ( ) { if ( $ this -> _getOpenSSLFunctionalityChecker ( ) -> isOpenSslRandomBytesGeneratorAvailable ( ) ) { $ sSalt = bin2hex ( openssl_random_pseudo_bytes ( 16 ) ) ; } else { $ sSalt = $ this -> _customSaltGenerator ( ) ; } return $ sSalt ; }
Generates salt. If openssl_random_pseudo_bytes function is not available,
than fallback to custom salt generator.

@return string
Generates salt . If openssl_random_pseudo_bytes function is not available than fallback to custom salt generator .