aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/e_repository.cc
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/repositories/e/e_repository.cc')
-rw-r--r--paludis/repositories/e/e_repository.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/paludis/repositories/e/e_repository.cc b/paludis/repositories/e/e_repository.cc
index 0c9f43639..df5b02381 100644
--- a/paludis/repositories/e/e_repository.cc
+++ b/paludis/repositories/e/e_repository.cc
@@ -681,7 +681,8 @@ ERepository::need_mirrors() const
{
/* pick up to five random mirrors only */
std::mt19937 random(std::time(0));
- std::random_shuffle(next(ee.begin()), ee.end(), Randomator{random});
+ Randomator randomator{random};
+ std::random_shuffle(next(ee.begin()), ee.end(), randomator);
if (ee.size() > 6)
ee.resize(6);