#include #include #include #include int main(){ int x; int fd = open("/dev/random", O_RDONLY); read(fd, &x, sizeof(x)); close(fd); printf("Our number is: %d\n", x); // Here is the other way! srandom(x); // x came from /dev/random! x = random(); printf("Our other number is: %d\n", x); return 0; }