Skip to content

Commit 5a18905

Browse files
jmcarcellm-fila
andcommitted
Set seed in the constructor
Co-authored-by: Mateusz Jakub Fila <[email protected]>
1 parent d952cf3 commit 5a18905

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

k4FWCore/components/EfficiencyFilter.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,7 @@ struct EfficiencyFilter final : k4FWCore::Transformer<podio::CollectionBase*(con
101101
template <typename T>
102102
podio::CollectionBase* createSubsetCollection(const podio::CollectionBase* source, const size_t uid) const {
103103

104-
std::mt19937 randomGen(std::random_device{}());
105-
randomGen.seed(uid);
104+
std::mt19937 randomGen(uid);
106105
std::uniform_real_distribution<double> uniformDist(0.0, 1.0);
107106

108107
auto ret = new T();

0 commit comments

Comments
 (0)