genChar() changed to genChars() and returning a std::vector<char>
instead of char*.