Commit 5664c9dc authored by Taylor Otwell's avatar Taylor Otwell

adjust comments in crypt class.

parent 68e3b468
......@@ -24,11 +24,9 @@ class Crypt {
*/
public static function encrypt($value)
{
// Seed the system random number generator if it is being used.
if (($random = static::randomizer()) === MCRYPT_RAND)
{
mt_srand();
}
// If the system random number generator is being used, we need to seed
// it to get adequately random results.
if (($random = static::randomizer()) === MCRYPT_RAND) mt_srand();
$iv = mcrypt_create_iv(static::iv_size(), $random);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment