Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <sys/time.h>
- time_t
- getunixutime()
- {
- struct timeval tp;
- gettimeofday(&tp, NULL);
- return tp.tv_usec;
- }
- int
- main(int argc, char **argv)
- {
- FILE *fd;
- unsigned char c;
- fd = fopen("/dev/urandom", "r");
- while (1) {
- if (getunixutime() % 2)
- printf(" ");
- printf("%02x", getc(fd));
- }
- fclose(fd);
- }
Add Comment
Please, Sign In to add comment