diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2021-03-09 18:57:48 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2021-03-09 18:57:48 (GMT) |
commit | 79b0aa571db9af191858391dbb28956c6fcbef4e (patch) | |
tree | 5dbf4d900c218cafa99e324c809ee3814ea24c02 /test/vfd_swmr.c | |
parent | b8c5c9f20d48476e5c24cedbd2d8953f5883c02c (diff) | |
download | hdf5-79b0aa571db9af191858391dbb28956c6fcbef4e.zip hdf5-79b0aa571db9af191858391dbb28956c6fcbef4e.tar.gz hdf5-79b0aa571db9af191858391dbb28956c6fcbef4e.tar.bz2 |
Replaces BSD random functions with ISO
Diffstat (limited to 'test/vfd_swmr.c')
-rw-r--r-- | test/vfd_swmr.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/vfd_swmr.c b/test/vfd_swmr.c index e2b0172..aa1992c 100644 --- a/test/vfd_swmr.c +++ b/test/vfd_swmr.c @@ -3077,7 +3077,6 @@ test_shadow_index_lookup(void) unsigned i, j, failj = UINT_MAX; hbool_t have_failj = FALSE; unsigned long tmpl; - char *ostate; const char *seedvar = "H5_SHADOW_INDEX_SEED"; const char *failvar = "H5_SHADOW_INDEX_FAIL"; @@ -3109,7 +3108,7 @@ test_shadow_index_lookup(void) break; } - ostate = initstate(seed, vector, _arraycount(vector)); + HDsrandom(seed); size[5] = (uint32_t)(1024 + HDrandom() % (16 * 1024 * 1024 - 1024)); @@ -3148,7 +3147,7 @@ test_shadow_index_lookup(void) if (idx != NULL) HDfree(idx); } - (void)setstate(ostate); + out: if (nerrors == 0) PASSED(); |