#include #include #include #include int main(int argc, char** argv) { int i; unsigned long delay; unsigned char buf[13] = ">aaaaaaaadd\r\n"; if (argc > 1) { delay = strtoul(argv[1], NULL, 10) * 1000; } else { delay = 0; } srandom(time(NULL)); while (1) { for (i = 1; i < 11; ++i) { buf[i] = random() & 255; } write(1, buf, sizeof(buf)); if (delay != 0) usleep(delay); } } /* vim: set ts=4 sts=4 sw=4 tw=80 et: */