fixed sudo rnd file generation