@TCH:BTW, látom kettébontottad a táblaforgatást, ami jó ötlet! Viszont akkor a 2. forgatórutinban nincs értelme a table-höz nyúlni, hiszen nem használjuk.
void shuffletable_cr2() {
int i;
unsigned int c;
unsigned char temp;
for (i = 0; i < 256; i++) {
c = rnd2() & 255;
table_pos[table[c]] = i;
table_pos[table[i]] = c;
temp = table[c];
table[c] = table[i];
table[i] = temp;
}
}
helyett
void shuffletable_cr2() {
int i;
unsigned int c;
for (i = 0; i < 256; i++) {
c = rnd2() & 255;
table_pos[table[c]] = i;
table_pos[table[i]] = c;
}
}