Ignore:
Timestamp:
Dec 13, 2007 9:55:08 AM (12 years ago)
Author:
forrest
Message:

for threaded random numbers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Clp/src/ClpModel.cpp

    r1128 r1141  
    107107    coinMessages_ = CoinMessage();
    108108  }
    109   CoinSeedRandom(1234567);
     109  randomNumberGenerator_.setSeed(1234567);
    110110}
    111111
     
    620620    }
    621621  }
    622   CoinSeedRandom(1234567);
     622  randomNumberGenerator_.setSeed(1234567);
    623623}
    624624// Assignment operator. This copies the data
     
    649649    handler_ = rhs.handler_;
    650650  eventHandler_ = rhs.eventHandler_->clone();
     651  randomNumberGenerator_ = rhs.randomNumberGenerator_;
    651652  messages_ = rhs.messages_;
    652653  coinMessages_ = rhs.coinMessages_;
     
    27972798    handler_ = rhs->handler_;
    27982799  eventHandler_ = rhs->eventHandler_->clone();
     2800  randomNumberGenerator_ = rhs->randomNumberGenerator_;
    27992801  messages_ = rhs->messages_;
    28002802  coinMessages_ = rhs->coinMessages_;
     
    29162918                                        numberColumns,whichColumn);
    29172919  }
    2918   CoinSeedRandom(1234567);
     2920  randomNumberGenerator_.setSeed(1234567);
    29192921}
    29202922#ifndef CLP_NO_STD
Note: See TracChangeset for help on using the changeset viewer.