Log of /trunk/math/mathcore/src/TRandom1.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: 24038 byte(s)
Diff to
previous 22885
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
22419 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Mar 3 00:25:01 2008 UTC (6 years, 10 months ago) by
rdm
Original Path:
trunk/math/src/TRandom1.cxx
File length: 23794 byte(s)
Diff to
previous 20882
From Andrew Savchenko:
ROOT can not be compiled with gcc-4.3.
Some ROOT source files doesn't contain required #include directives,
for example, they use strlen(), but #include <string.h> is missed or
malloc() is used and #include <stdlib.h> is missed.
Earlier versions of gcc allowed some headers to be included implicitly,
but issued a warning (-Wimplicit-function-declaration). Newer one,
gcc-4.3 denies such silly behaviour: all required headers must be explicitly
included.
Attached patch fixes this. Also it fixes another issue, which disallows
ROOT to compile under gcc-4.3: C functions don't belong to namespace std,
so expressions like std::memcpy() are no longer valid and plain memcpy()
should be used instead.
Revision
17306 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Jan 12 16:03:17 2007 UTC (8 years ago) by
brun
Original Path:
trunk/math/src/TRandom1.cxx
File length: 23783 byte(s)
Diff to
previous 17297
TMath::Abs, TMath::Min, TMath::Max, TMath::Sign, TMath::Range
These functions are unfortunately not defined in a standard way in std::
This include is referenced by a new version of TMath.h.
As a result, TMath.h is back compatible with the previous version.
TMathBase.h is used in place of TMath.h in all the classes
that will go into the future miniCore library.
TMath.h and the TMath implementation will go into a new math sub-directory.
TString.h uses TMathBase.h instead of TMath.h.
As a result, it was necessary to include "TMath.h" in some classes
assuming that TMath was included via TString and using other functions
than the ones defined in TMathBase.h
----------------------------------------------------------------------
Revision
14913 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Added
Thu May 4 13:06:15 2006 UTC (8 years, 8 months ago) by
brun
Original Path:
trunk/math/src/TRandom1.cxx
File length: 23026 byte(s)
Implement a new random number generator RANLUX taken from CERNLIB/CLHEP.
The new class is called TRandom1.
This class is added for consistency because it is well known.
Unfortunately, this class is much slower than all the other generators.
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.