cleaning up various codes.

This commit is contained in:
Taylor Otwell
2012-02-06 19:59:07 -06:00
parent 78dc4529f1
commit 007863a6fa
5 changed files with 9 additions and 18 deletions

View File

@@ -36,7 +36,7 @@ class Hash {
// Bcrypt expects the salt to be 22 base64 encoded characters including
// dots and slashes. We will get rid of the plus signs included in the
// base64 data and replace them with dots. OpenSSL will be used if it
// is available, otherwise we will use the Str::random method.
// is available on the server.
if (function_exists('openssl_random_pseudo_bytes'))
{
$salt = openssl_random_pseudo_bytes(16);