mirror of
https://github.com/Z3Prover/z3
synced 2025-04-27 19:05:51 +00:00
convert static random fields to non-static
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
df1f7ee5e0
commit
29a49f4427
12 changed files with 46 additions and 55 deletions
|
@ -136,7 +136,7 @@ void random_updater::shift_var(unsigned j, interval & r) {
|
|||
}
|
||||
|
||||
numeric_pair<mpq> random_updater::get_random_from_interval(interval & r) {
|
||||
unsigned rand = my_random();
|
||||
unsigned rand = m_core_solver.settings().random_next();
|
||||
if ((!r.low_bound_is_set) && (!r.upper_bound_is_set))
|
||||
return numeric_pair<mpq>(rand % range, 0);
|
||||
if (r.low_bound_is_set && (!r.upper_bound_is_set))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue