Commit 395bee3f authored by vasil's avatar vasil

branches/zip:

When using the random function, first take the modulus by the number of pages
and then typecast to ulint.
parent 350f609b
......@@ -557,7 +557,7 @@ page_cur_open_on_rnd_user_rec(
return;
}
rnd = (ulint) page_cur_lcg_prng() % n_recs;
rnd = (ulint) (page_cur_lcg_prng() % n_recs);
do {
page_cur_move_to_next(cursor);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment