read /dev/random on unix