fix function randomstring()