Use /dev/urandom instead of /dev/random