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
1 changed files with 2 additions and 0 deletions

View File

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