diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2020-10-26 17:53:28 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2020-10-26 17:53:28 (GMT) |
commit | a4269a08b91e794c1de4058348e076be9fef657e (patch) | |
tree | f28bc18de5c53bd8f3a824a116f8b78f5c48ae6f /test/cache_api.c | |
parent | 7bfa10018ecf5efe54b4a699bb684d31468c8b42 (diff) | |
parent | 313a8c8546b3b975fba722b015c8c8269dd240cb (diff) | |
download | hdf5-a4269a08b91e794c1de4058348e076be9fef657e.zip hdf5-a4269a08b91e794c1de4058348e076be9fef657e.tar.gz hdf5-a4269a08b91e794c1de4058348e076be9fef657e.tar.bz2 |
Merge branch 'develop' of https://github.com/HDFGroup/hdf5 into develop
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*/ |