Skip to content

Commit e1639cc

Browse files
smaff92alibuild
andauthored
Bugfix to random generator for response matrix (unfolding) (#7025)
* Added K*(892) functionality, as well as a host of optimizations and features * Please consider the following formatting changes * Megalinter fixes for pull 6940 * Please consider the following formatting changes * Fixed rand_r() bug * Please consider the following formatting changes * Bugfix to random evaluator * Please consider the following formatting changes --------- Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
1 parent ac21ceb commit e1639cc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

PWGJE/Tasks/phiInJets.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1352,7 +1352,7 @@ struct phiInJets {
13521352
std::cout << "******************************************" << std::endl;
13531353
}
13541354
JEhistos.fill(HIST("Resp_Matrix_MATCHED"), lResonance.Pt(), jetpt_mcd, mothers1Pt[0], jetpt_mcp);
1355-
unsigned int seed = 1992;
1355+
unsigned int seed = static_cast<unsigned int>(std::chrono::system_clock::now().time_since_epoch().count());
13561356
int dice = rand_r(&seed) % 2;
13571357
if (dice > 0)
13581358
JEhistos.fill(HIST("Resp_Matrix_MATCHED_rand0"), lResonance.Pt(), jetpt_mcd, mothers1Pt[0], jetpt_mcp);

0 commit comments

Comments
 (0)