diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2020-10-24 00:13:05 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2020-10-24 00:13:05 (GMT) |
commit | ca3659a01427cd58e5fddb57349b7030e5cb2dcd (patch) | |
tree | 5633c0b4bb7b5174518d27b33db43228c1c538d0 /test/cache_api.c | |
parent | f9679de85c9de96603d448950da5e1f2c18b4494 (diff) | |
download | hdf5-ca3659a01427cd58e5fddb57349b7030e5cb2dcd.zip hdf5-ca3659a01427cd58e5fddb57349b7030e5cb2dcd.tar.gz hdf5-ca3659a01427cd58e5fddb57349b7030e5cb2dcd.tar.bz2 |
HD prefix updates in src/ and test/
Adds missing HD prefixes to API calls in src and test.
Adds some extra processing to bin/checkposix to keep the noise
levels down when running the script (not comprehensive).
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*/ |