Utility files.

This commit is contained in:
Nicholas Marriott
2009-01-08 22:02:25 +00:00
parent a9f0418255
commit 678dffa840
3 changed files with 94 additions and 0 deletions

31
util/fuzz.c Normal file
View File

@ -0,0 +1,31 @@
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <unistd.h>
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);
}
}