add php doc to generateRandomString() method