Don't call srand unless we're actually randomizing read sizes.

This commit is contained in:
Stephen Heumann 2017-11-19 23:47:30 -06:00
parent e288a7bc83
commit 8050c05a7a

View File

@ -36,7 +36,9 @@ int main(int argc, char **argv) {
size_t count; size_t count;
int i, n; int i, n;
#ifdef RANDOMIZE_READ_SIZE
srand(time(NULL)); srand(time(NULL));
#endif
if (argc < 2) { if (argc < 2) {
fprintf(stderr, "Usage: %s filename ...\n", argv[0]); fprintf(stderr, "Usage: %s filename ...\n", argv[0]);