summaryrefslogtreecommitdiff
path: root/tests/rand.c
blob: c4fc6d2e05addf5f1937b6e80f83ee68bb053a66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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);
}