summaryrefslogtreecommitdiff
path: root/src/btree/row_srch.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/btree/row_srch.c')
-rw-r--r--src/btree/row_srch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/btree/row_srch.c b/src/btree/row_srch.c
index 6d65a89c15a..9803b924355 100644
--- a/src/btree/row_srch.c
+++ b/src/btree/row_srch.c
@@ -486,7 +486,7 @@ restart:
WT_INTL_INDEX_GET(session, page, pindex);
descent = pindex->index[
- __wt_random(session->rnd) % pindex->entries];
+ __wt_random(&session->rnd) % pindex->entries];
/*
* Swap the parent page for the child page; return on error,
@@ -520,7 +520,7 @@ restart:
cbt->compare = 0;
WT_INTL_INDEX_GET(session, btree->root.page, pindex);
cbt->slot = pindex->entries < 2 ?
- __wt_random(session->rnd) % page->pg_row_entries : 0;
+ __wt_random(&session->rnd) % page->pg_row_entries : 0;
return (__wt_row_leaf_key(session,
page, page->pg_row_d + cbt->slot, cbt->tmp, 0));