]> git.somenet.org - pub/astra/parallel.git/blob - merge/getrand.c
optimize merge
[pub/astra/parallel.git] / merge / getrand.c
1 #include <stdio.h>
2
3 int main ( int argc, char ** argv) {
4         FILE *urandom = fopen("/dev/urandom", "r");
5         int j = 0;
6         for(int i = 0; i < 10000000; i++){
7                 j += getc(urandom);
8                 printf("%d\n", j); //(getc(urandom) + (getc(urandom) <<8 )));
9         }
10         fclose(urandom);
11 }