removed srand()

This commit is contained in:
Qiang Xue
2014-03-23 18:47:18 -04:00
parent eaaf5f02a3
commit b6b7a8f235

View File

@ -55,7 +55,6 @@ class BaseSecurity
{
$module = static::openCryptModule();
$data = static::addPadding($data);
srand();
$iv = mcrypt_create_iv(mcrypt_enc_get_iv_size($module), MCRYPT_RAND);
$key = static::deriveKey($password, $iv);
mcrypt_generic_init($module, $key, $iv);