changing the seed of the TRandom

Changing the way to get the seed for the TRandom (making sure that it is alway reproducible). This PR replaces part of the #2148 PR (removed changes from the GEN side)