Make getRandomString static as per comment