Open access to GENIE random engine
I would like to gain access to the random engine used by GENIE.
That is currently owned by
GENIEHelper, that swaps it in when calling GENIE.
I would like in particular to have a way to set and read the random seed at any time.
Currently, I can only set it at the beginning of the job (via FHiCL configuration).
The other solution is quite more clumsy: create my own random generator, set it as ROOT's currrent, call
GENIEHelper::Sample (configured with
UseHelperRndGen4GENIE: false), and restore the previous ROOT random generator. This is precisely what
GENIEHelper::Sample already does (and it does it better).