Simplified the generateRandomString method
Merge pull request #91 from Coenego/simplify-randomstring-method

Simplified the generateRandomString method