From 96601ce9fe320873459f2d7a069abc17ab303a70 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 2 Nov 2010 20:55:13 +0000 Subject: [PATCH] Bring back fuzz.c. --- tools/fuzz.c | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 tools/fuzz.c diff --git a/tools/fuzz.c b/tools/fuzz.c new file mode 100644 index 00000000..39a2a4db --- /dev/null +++ b/tools/fuzz.c @@ -0,0 +1,31 @@ +#include + +#include +#include +#include +#include + +int +main(void) +{ + time_t t; + int i; + + setvbuf(stdout, NULL, _IONBF, 0); + + t = time(NULL); + srandom((u_int) t); + + for (;;) { + putchar('\033'); + + for (i = 0; i < random() % 25; i++) { + if (i > 22) + putchar(';'); + else + putchar(random() % 256); + } + + /* usleep(100); */ + } +}