support for random ivs

added support for random iv's