Log of /trunk/math/mathcore/src/TRandom3.cxx
Parent Directory
Revision
48161 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Dec 20 15:40:23 2012 UTC (2 years, 1 month ago) by
moneta
File length: 8160 byte(s)
Diff to
previous 37531
fix seeding for seed = 0 (random seed from TUUID)
Use TUUID to generate 3 unique seeds for TRandom2.
TRandom2 os then used for generating random states for both TRandom1 and TRandom3
TRandom is now initialized using the lowest 4 bytes of TUUID
This fixes the bug reported in https://savannah.cern.ch/bugs/?99516
All the 4 generators now pased the test reported by Chris (see bug report)
Revision
37531 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Dec 10 20:38:06 2010 UTC (4 years, 1 month ago) by
pcanal
File length: 7921 byte(s)
Diff to
previous 22885
Fix several memory leaks (TSchemaRuleSet, TClass, TFolder, stress, TStreamerInfo, TFile, TFree)
Introduce a new preprocessor symbol (R__COMPLETE_MEM_TERMINATION) that allows for
better tracking of memory leak. When ROOT is compiled with this symbols is defined,
globally held objects will be deleted at the time of the process termination.
With this symbol defined, some tests (root.exe -b -l -q ; test/stress ;) run under
'valgrind --leak-check=yes' with no memory leak reports (but still a few still
reacheable blocks). However, this does not yet support (i.e. segfault at termination)
the case where TFunctions are created on the 'CINT' stack (and thus fails roottest) and
some uses of CINT functions for fitting ... and probably also fails on Windows.
Revision
17724 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Feb 6 14:17:24 2007 UTC (7 years, 11 months ago) by
brun
Original Path:
trunk/math/src/TRandom3.cxx
File length: 7773 byte(s)
Diff to
previous 17297
In the Streamer functions replace teh lines like
TPad::Class()->ReadBuffer(b, this, v, R__s, R__c);
TPad::Class()->WriteBuffer(b,this);
by
b.ReadClassBuffer(TPad::Class(), this, v, R__s, R__c);
b.WriteClassBuffer(TPad::Class(),this);
Revision
14336 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Mar 20 21:43:44 2006 UTC (8 years, 10 months ago) by
pcanal
Original Path:
trunk/math/src/TRandom3.cxx
File length: 6278 byte(s)
Diff to
previous 13987
Reduce direct dependencies on TClass.h, TROOT.h and TStreamerInfo.h.
Warning: This means that some file that relied on the indirect
inclusion of these header file might now fail to compile with
an error message mention that gROOT is no known or that TClass,
TROOT or TStreamerInfo is incompletely defined. Simply add the
proper include directive.
Revision
10620 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Nov 24 17:49:08 2004 UTC (10 years, 2 months ago) by
brun
Original Path:
trunk/math/src/TRandom3.cxx
File length: 6251 byte(s)
Diff to
previous 5989
Extend functionality of TRandom3::SetSeed(UInt_t seed)
// if seed is 0 (default value) a TUUID is generated and used to fill
// the first 8 integers of the seed array.
// In this case the seed is guaranteed to be unique in space and time.
Revision
5989 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Sun Jan 26 21:03:16 2003 UTC (12 years ago) by
brun
Original Path:
trunk/math/src/TRandom3.cxx
File length: 5732 byte(s)
Diff to
previous 5605
In TRandom add new function:
virtual void RndmArray(Int_t n, Float_t *array);
In TRandom2 and TRandom3, add the functions:
virtual void RndmArray(Int_t n, Float_t *array);
virtual void RndmArray(Int_t n, Double_t *array);
Revision
1006 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Nov 22 08:35:44 2000 UTC (14 years, 2 months ago) by
brun
Original Path:
trunk/math/src/TRandom3.cxx
File length: 5412 byte(s)
Diff to
previous 925
Use double precision in return types and all arguments
of the random number generator classes. The modified prototypes are:
virtual Int_t Binomial(Int_t ntot, Double_t prob);
virtual Double_t Gaus(Double_t mean=0, Double_t sigma=1);
virtual Double_t Landau(Double_t mean=0, Double_t sigma=1);
virtual Int_t Poisson(Double_t mean);
virtual void Rannor(Float_t &a, Float_t &b);
virtual void Rannor(Double_t &a, Double_t &b);
virtual Double_t Rndm(Int_t i=0);
virtual Double_t Uniform(Double_t x1=1);
Note that in case of Rannor, two functions are provided, one with
float and one with double for back compatibility.
This form allows you to request diffs between any two revisions of this file.
For each of the two "sides" of the diff,
enter a numeric revision.