diff options
Diffstat (limited to 'tests/rand.c')
-rw-r--r-- | tests/rand.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/rand.c b/tests/rand.c new file mode 100644 index 0000000..c4fc6d2 --- /dev/null +++ b/tests/rand.c @@ -0,0 +1,16 @@ +#include <stdio.h> + +FILE * popen(); + +main() +{ + FILE * fd = popen("./hd", "w"); + int ch; + + srand(time((void*)0)); + + for(ch=0; ch<256; ch++) + putc(rand(), fd); + + pclose(fd); +} |