Hello, I am having problems copying outputs of the above code into other unsigned char other[32].
I need to keep the output of dev/urandom for backup.
But, when I try to assign the values by memcpy(other, key, 32), the values do not match. The same problem happens by assigning values index by index in a loop.
Help.
I am not sure, I found a solution that might be temporary, but stringstream seems to get the right values. So, it's probable a problem with the outputof dev/urandom. Urandom sometimes returns a variable size "random" sequence of characters.