Added generateRandomStringFromString() method to Base class