diff options
author | Larry Knox <lrknox@hdfgroup.org> | 2020-10-24 13:05:13 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-24 13:05:13 (GMT) |
commit | 313a8c8546b3b975fba722b015c8c8269dd240cb (patch) | |
tree | abbc9530d2a1460110e6b41af9de071deb66ead0 /test/cache_api.c | |
parent | 2c3cf8240f45508dea02cab08fa67c2a775cab58 (diff) | |
parent | 2ae59f1c6199c62d6efeb43f91924e06f1fd6248 (diff) | |
download | hdf5-313a8c8546b3b975fba722b015c8c8269dd240cb.zip hdf5-313a8c8546b3b975fba722b015c8c8269dd240cb.tar.gz hdf5-313a8c8546b3b975fba722b015c8c8269dd240cb.tar.bz2 |
Merge pull request #59 from derobins/trivial/HDprefix
HD prefix updates in src/ and test/
Diffstat (limited to 'test/cache_api.c')
-rw-r--r-- | test/cache_api.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/cache_api.c b/test/cache_api.c index acdb4ba..143cc71 100644 --- a/test/cache_api.c +++ b/test/cache_api.c @@ -1216,9 +1216,9 @@ mdc_api_call_smoke_check(int express_test, unsigned paged, hid_t fcpl_id) /* do random reads on all datasets */ n = 0; while ((pass) && (n < NUM_RANDOM_ACCESSES)) { - m = rand() % NUM_DSETS; - i = (rand() % (DSET_SIZE / CHUNK_SIZE)) * CHUNK_SIZE; - j = (rand() % (DSET_SIZE / CHUNK_SIZE)) * CHUNK_SIZE; + m = HDrand() % NUM_DSETS; + i = (HDrand() % (DSET_SIZE / CHUNK_SIZE)) * CHUNK_SIZE; + j = (HDrand() % (DSET_SIZE / CHUNK_SIZE)) * CHUNK_SIZE; /* select on disk hyperslab */ offset[0] = (hsize_t)i; /*offset of hyperslab in file*/ @@ -1328,8 +1328,8 @@ mdc_api_call_smoke_check(int express_test, unsigned paged, hid_t fcpl_id) m = 0; n = 0; while ((pass) && (n < NUM_RANDOM_ACCESSES)) { - i = (rand() % (DSET_SIZE / CHUNK_SIZE)) * CHUNK_SIZE; - j = (rand() % (DSET_SIZE / CHUNK_SIZE)) * CHUNK_SIZE; + i = (HDrand() % (DSET_SIZE / CHUNK_SIZE)) * CHUNK_SIZE; + j = (HDrand() % (DSET_SIZE / CHUNK_SIZE)) * CHUNK_SIZE; /* select on disk hyperslab */ offset[0] = (hsize_t)i; /*offset of hyperslab in file*/ |