mcrypt_create_iv() improvement