diff options
Diffstat (limited to 'patgen.c')
-rwxr-xr-x | patgen.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -9,6 +9,7 @@ #include <sys/ioctl.h> #include <unistd.h> #include <stdlib.h> +#include "bittest.h" /* #define BLOCK_SIZE 2048 */ #define BLOCK_SIZE 2041 @@ -60,8 +61,10 @@ int main(int argc, char *argv[]) #endif for(;;) { res = bs; - for (x=0;x<bs;x++) - outbuf[x] = c++; + for (x=0;x<bs;x++) { + outbuf[x] = c; + c = bit_next(c); + } res = write(fd, outbuf, res); #if 0 printf("(%d) Wrote %d bytes\n", packets++, res); |