From 5664c9dc92d47a1d7ffb6e703dac56507849c487 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Sat, 6 Aug 2011 20:44:13 -0500 Subject: [PATCH] adjust comments in crypt class. --- system/crypt.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/system/crypt.php b/system/crypt.php index a7cd77c2..60c8fec8 100644 --- a/system/crypt.php +++ b/system/crypt.php @@ -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);