summaryrefslogtreecommitdiffstats
path: root/test/vfd_swmr.c
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2021-03-09 18:57:48 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2021-03-09 18:57:48 (GMT)
commit79b0aa571db9af191858391dbb28956c6fcbef4e (patch)
tree5dbf4d900c218cafa99e324c809ee3814ea24c02 /test/vfd_swmr.c
parentb8c5c9f20d48476e5c24cedbd2d8953f5883c02c (diff)
downloadhdf5-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.c5
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();