From 90ffa8b4eb26af9060e57be7fe5d6008717d3ce6 Mon Sep 17 00:00:00 2001 From: Aina Niemetz Date: Tue, 9 Oct 2018 10:36:40 -0700 Subject: Random: support URNG interface (#2595) Use std::shuffle (with Random as the unified random generator) instead of std::random_shuffle for deterministic, reproducable random shuffling. --- src/theory/quantifiers/sygus/sygus_unif.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/theory/quantifiers/sygus/sygus_unif.cpp') diff --git a/src/theory/quantifiers/sygus/sygus_unif.cpp b/src/theory/quantifiers/sygus/sygus_unif.cpp index d1217d01d..c262c77e5 100644 --- a/src/theory/quantifiers/sygus/sygus_unif.cpp +++ b/src/theory/quantifiers/sygus/sygus_unif.cpp @@ -79,7 +79,7 @@ Node SygusUnif::constructBestStringToConcat( { Assert(!strs.empty()); std::vector strs_tmp = strs; - std::random_shuffle(strs_tmp.begin(), strs_tmp.end()); + std::shuffle(strs_tmp.begin(), strs_tmp.end(), Random::getRandom()); // prefer one that has incremented by more than 0 for (const Node& ns : strs_tmp) { -- cgit v1.2.3