Skip to content
Snippets Groups Projects
Commit 824f2a12 authored by Lorenzo Moneta's avatar Lorenzo Moneta
Browse files

re-impelment GetSeed in derived class to return first element of the seed...

re-impelment GetSeed in derived class to return first element of the seed table. Before always a fixed value was returned independent of the state


git-svn-id: http://root.cern.ch/svn/root/trunk@39600 27541ba8-7e3a-0410-8455-c3a389f83636
parent c1ce8cf7
Branches
Tags
No related merge requests found
......@@ -49,6 +49,8 @@ public:
TRandom1(Int_t rowIndex, Int_t colIndex, Int_t lux );
virtual ~TRandom1();
virtual Int_t GetLuxury() const {return fLuxury;}
// Get the current seed (first element of the table)
virtual UInt_t GetSeed() const { return UInt_t ( fFloatSeedTable[0] / fMantissaBit24 ) ; }
// Gets the current seed.
const UInt_t *GetTheSeeds() const {return fTheSeeds;}
// Gets the current array of seeds.
......
......@@ -35,6 +35,8 @@ private:
public:
TRandom3(UInt_t seed=4357);
virtual ~TRandom3();
// get the current seed (only first element of the seed table)
virtual UInt_t GetSeed() const { return fMt[0];}
virtual Double_t Rndm(Int_t i=0);
virtual void RndmArray(Int_t n, Float_t *array);
virtual void RndmArray(Int_t n, Double_t *array);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment