summaryrefslogtreecommitdiffstats
path: root/test/ttst.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2003-01-09 18:40:19 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2003-01-09 18:40:19 (GMT)
commit98f01e2df2b407bfae2cd24fe4f03e184712eb75 (patch)
treef1981909055143f84c94799354d3d2a266c30c0f /test/ttst.c
parent9a433b99a56dc575f1c0b11f95b744de61859dbb (diff)
downloadhdf5-98f01e2df2b407bfae2cd24fe4f03e184712eb75.zip
hdf5-98f01e2df2b407bfae2cd24fe4f03e184712eb75.tar.gz
hdf5-98f01e2df2b407bfae2cd24fe4f03e184712eb75.tar.bz2
[svn-r6255] Purpose:
Code cleanup Description: Clean up a few more warnings and update dependencies. Platforms tested: Linux 2.2.18smp (eirene) serial & parallel
Diffstat (limited to 'test/ttst.c')
-rw-r--r--test/ttst.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/ttst.c b/test/ttst.c
index eb9ebef..15241a5 100644
--- a/test/ttst.c
+++ b/test/ttst.c
@@ -33,6 +33,7 @@
*/
#include <time.h>
+#include <stdlib.h>
#include "testhdf5.h"
#include "H5STprivate.h"
@@ -122,9 +123,9 @@ test_tst_init(void)
for(u=0; u<num_uniq_words; u++)
rand_uniq_words[u]=uniq_words[u];
curr_time=time(NULL);
- srandom((unsigned long)curr_time);
+ HDsrandom((unsigned long)curr_time);
for(u=0; u<num_uniq_words; u++) {
- v=u+(random()%(num_uniq_words-u));
+ v=u+(HDrandom()%(num_uniq_words-u));
if(u!=v) {
tmp_word=rand_uniq_words[u];
rand_uniq_words[u]=rand_uniq_words[v];