avoid to generate "\0" in the RandBuf