summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apt-pkg/policy.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/policy.cc b/apt-pkg/policy.cc
index bdb049ead..39879f754 100644
--- a/apt-pkg/policy.cc
+++ b/apt-pkg/policy.cc
@@ -301,7 +301,7 @@ static inline bool ExcludePhased(std::string machineID, pkgCache::VerIterator co
|| APT::Configuration::isChroot())
return false;
- std::string seedStr = std::string(Ver.SourcePkgName()) + "-" + Ver.VerStr() + "-" + machineID;
+ std::string seedStr = std::string(Ver.SourcePkgName()) + "-" + Ver.SourceVerStr() + "-" + machineID;
std::seed_seq seed(seedStr.begin(), seedStr.end());
std::minstd_rand rand(seed);
std::uniform_int_distribution<unsigned int> dist(0, 100);