Changeset 3739 in Sophya


Ignore:
Timestamp:
Feb 4, 2010, 7:56:20 PM (16 years ago)
Author:
ansari
Message:

suppression init systematique (setseed) de drand48() ds le contructeur de DR48RandGen, cmv+reza 04/02/2010

Location:
trunk/SophyaLib/BaseTools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/BaseTools/randr48.cc

    r3619 r3739  
    1010namespace SOPHYA {
    1111
     12static bool dr48_first = true;
     13DR48RandGen::DR48RandGen()
     14{
     15  if (dr48_first) {
     16    Next();  dr48_first=false;
     17  }
     18}
     19
    1220DR48RandGen::DR48RandGen(long int  seed)
    1321{
    1422  srand48(seed);
     23  dr48_first=false;
    1524}
    1625
  • trunk/SophyaLib/BaseTools/randr48.h

    r3615 r3739  
    3838
    3939 public:
    40   DR48RandGen(long int seed=12345);
     40  DR48RandGen();
     41  DR48RandGen(long int seed);
    4142  virtual ~DR48RandGen();
    4243
Note: See TracChangeset for help on using the changeset viewer.