Use random(3) if /dev/urandom is not available