Was getting segfaults during base64 encoding due to not allocating
enough bytes for the base64 encoded data.  The testing mentioned
performed in the last commit had a bug in it so that what was supposed
to be a random length was actually always the same length.  Fixed this
and repeated the testing and verified random data of random length
between 1 and 1000 bytes were being generated in the testing of
1,000,000 binary strings.  Testing passed.