summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2003-05-31 16:19:28 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2003-05-31 16:19:28 (GMT)
commit263ff3e4fd0f7de2408cac298c3d4985777b63bc (patch)
tree40c60a1193a3c7bd8df485f5c61dc176c4f6a2fb /test
parent8f205256f2edcf05773d5d635d20738a6760c78a (diff)
downloadhdf5-263ff3e4fd0f7de2408cac298c3d4985777b63bc.zip
hdf5-263ff3e4fd0f7de2408cac298c3d4985777b63bc.tar.gz
hdf5-263ff3e4fd0f7de2408cac298c3d4985777b63bc.tar.bz2
[svn-r6940] Purpose:
Code cleanup Description: Call srand(time(NULL)) before performing tests, to better randomize numbers chosen for testing. Platforms tested: h5committestted (although Fortran tests failed for some reason)
Diffstat (limited to 'test')
-rw-r--r--test/dtypes.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/dtypes.c b/test/dtypes.c
index 298a8da..8693422 100644
--- a/test/dtypes.c
+++ b/test/dtypes.c
@@ -19,6 +19,7 @@
* Purpose: Tests the data type interface (H5T)
*/
+#include <time.h>
#include "h5test.h"
/* Number of times to run each test */
@@ -4114,6 +4115,9 @@ main(void)
unsigned long nerrors = 0;
hid_t fapl=-1;
+ /* Set the random # seed */
+ HDsrandom((unsigned long)time(NULL));
+
reset_hdf5();
fapl = h5_fileaccess();