iv_gen: Add IV generator that allocates IVs randomly