adjust comments in crypt class.
This commit is contained in:
@@ -24,11 +24,9 @@ class Crypt {
|
|||||||
*/
|
*/
|
||||||
public static function encrypt($value)
|
public static function encrypt($value)
|
||||||
{
|
{
|
||||||
// Seed the system random number generator if it is being used.
|
// If the system random number generator is being used, we need to seed
|
||||||
if (($random = static::randomizer()) === MCRYPT_RAND)
|
// it to get adequately random results.
|
||||||
{
|
if (($random = static::randomizer()) === MCRYPT_RAND) mt_srand();
|
||||||
mt_srand();
|
|
||||||
}
|
|
||||||
|
|
||||||
$iv = mcrypt_create_iv(static::iv_size(), $random);
|
$iv = mcrypt_create_iv(static::iv_size(), $random);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user