We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1fe65b0 + 78aba8e commit dae5ca3Copy full SHA for dae5ca3
src/shuffle.c
@@ -164,7 +164,7 @@ int shuffle_by_chunks() {
164
if(feof(fin)) break;
165
i++;
166
}
167
- shuffle(array, i-1); //Last chunk may be smaller than array_size
+ shuffle(array, i-2); //Last chunk may be smaller than array_size
168
write_chunk(array,i,fid);
169
l += i;
170
if(verbose > 1) fprintf(stderr, "\033[22Gprocessed %ld lines.\n", l);
0 commit comments