Added  generateRandomString()