/random/setSeeds seems to not work

Dear Anna, Michel,

I did three tests using the following geant4 examples
Test 1: /extended/eventgenerator/particleGun
Test 2: /extended/electromagnetic/TestEm4
Test 3: basic/B5/ (my simulation is based on this example)

The command /setSavingFlag 1 works with these three examples. G4Worker*.rndm files were generated. I will compare with my code…

But the main problem I have is to generate different events for different runs by using /random/setSeeds.
This did not work even for examples TestEm4 and particleGun. I launched two runs with

seed1

/random/setSeeds 1706221035042 1706222552143

and

seed 2

/random/setSeeds 1555308615741 1555305948531

but the events were the same.
In fact, for /extended/eventgenerator/particleGun, in PrimaryGeneratorAction2::GeneratePrimaries(G4Event*) I printed
CLHEP::HepRandom::showEngineStatus();
and the “energy” of the generated particle.

The “Current couple of seeds” and “energy” were the same for these two runs.

Do you have any idea about this? The G4UniformRand() method is used to generate this energy. Does it use the seed set in the macro file?

Thank you for your help!
Emilia