Commit f5fa54b3 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 7c41e60d
...@@ -557,7 +557,7 @@ page_cur_open_on_rnd_user_rec( ...@@ -557,7 +557,7 @@ page_cur_open_on_rnd_user_rec(
return; return;
} }
rnd = (ulint) page_cur_lcg_prng() % n_recs; rnd = (ulint) (page_cur_lcg_prng() % n_recs);
do { do {
page_cur_move_to_next(cursor); 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