/* Test (255,223) RS code * August 1997 Phil Karn */ #include #include #include #include "rs32.h" void fill_eras(int eras_pos[],int n) { int i,j,t,work[NN]; for(i=0;i0;j--){ i = random() % j; /* not really uniform, I know */ t = work[i]; work[i] = work[j]; work[j] = t; } for(i=0;i NN-KK) printf("Warning: %d errors and %d erasures exceeds the correction ability of the code\n",nerrors,nerase); time(&t); srandom(t); init_rs(); if(timetest){ printf("Speed timing test (repeated decoding of same block)\n"); for(i=0;i