SomeNet
/
public repos
/
pub
/
jan
/
parprog.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
init prefix.c
[pub/jan/parprog.git]
/
openmp
/
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
}