add c code snippet for generating a random number by reading the device /dev/urandom