summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/checkpoint/workers.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/checkpoint/workers.c b/test/checkpoint/workers.c
index 1a01dda649c..b7858cb8292 100644
--- a/test/checkpoint/workers.c
+++ b/test/checkpoint/workers.c
@@ -169,11 +169,14 @@ real_worker(void)
{
WT_CURSOR **cursors;
WT_SESSION *session;
+ uint32_t rnd[2];
u_int i, keyno;
int j, ret, t_ret;
ret = t_ret = 0;
+ __wt_random_init(rnd);
+
if ((cursors = calloc(
(size_t)(g.ntables), sizeof(WT_CURSOR *))) == NULL)
return (log_print_err("malloc", ENOMEM, 1));
@@ -197,7 +200,7 @@ real_worker(void)
"real_worker:begin_transaction", ret, 1);
goto err;
}
- keyno = __wt_random() % g.nkeys + 1;
+ keyno = __wt_random(rnd) % g.nkeys + 1;
for (j = 0; j < g.ntables; j++) {
if ((ret = worker_op(cursors[j], keyno, i)) != 0)
break;