Skip to content
Snippets Groups Projects

Set random seed when running a simulation

Merged Florian Uhlig requested to merge f.uhlig/cbmroot:fix_random_problem into master

Up to now the ROOT random number generator was always initialised with the same default value. In some cases this gives strange results when doing large scale simulations with several jobs. To solve the problem TRandom is now initialised with the value 0 which uses a seed value based on the system time with a granularity of 100ns. This granularity should be good enough to have different seed values even if several jobs start a similar times on the batch farm. A setter was added to allow to set the seed value explicitly from a macro, refs #1395, #2066

Merge request reports

Merge request pipeline #9056 passed

Merge request pipeline passed for c43cb3b3

Approved by

Merged by Florian UhligFlorian Uhlig 4 years ago (Mar 31, 2021 4:57pm UTC)

Merge details

  • Changes merged into master with c43cb3b3.
  • Deleted the source branch.

Pipeline #9060 passed

Pipeline passed for c43cb3b3 on master

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading