What is a good way to do this? this is what I'm trying (c++):
Code:
ifstream randomStream;
randomStream.open("/dev/random");
char randomDataString [201];
randomStream.getline(randomDataString,200);
And then I try to conver the string to a number with some gmp functions. I can print out the datastring, but I can only get '0' when I convert it to an integer.
I can make integers with regular character strings, but this one won't work. Are there any other ways of doing this?