impy-project / chromo

Hadronic Interaction Model interface in PYthon
Other
30 stars 7 forks source link

Fix rangen for EPOS #136

Closed HDembinski closed 1 year ago

HDembinski commented 1 year ago

This is a hotfix for a mistake I introduced when I changed the random number generation. Without this fix, EPOS eventually runs into an infinite loop at some point after X events generated.

Since this is a simple hotfix, I will merge this myself.

afedynitch commented 1 year ago

Fixing bugs is great. Thanks. How did you find it?

HDembinski commented 1 year ago

I was running several generators for https://github.com/impy-project/chromo/pull/138. We were just "lucky" that it did not show up in the unit tests with fixed seeds.