Changeset 1337


Ignore:
Timestamp:
Dec 2, 2009 10:52:04 PM (10 years ago)
Author:
bjarni
Message:

Add static_cast<unsigned int> for time(NULL) to avoid MSVC warnings when used as argument for srand()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/sandbox/Cbc/src/CbcHeuristicRandRound.cpp

    r1286 r1337  
    219219
    220220    double * newObj = new double [numCols];
    221     srand ( time(NULL) + 1);
     221    srand ( static_cast<unsigned int>(time(NULL) + 1));
    222222    int randNum;
    223223
     
    386386    //-------------------------------------------
    387387
    388     srand ( time(NULL) + 1);
     388    srand ( static_cast<unsigned int>(time(NULL) + 1));
    389389    int numRandomPoints = 0;
    390390    while (numRandomPoints < 50000) {
Note: See TracChangeset for help on using the changeset viewer.