COIN-OR::LEMON - Graph Library

Changeset 368:879c55700cd4 in lemon-1.0 for lemon/random.h


Ignore:
Timestamp:
02/16/09 16:03:32 (15 years ago)
Author:
Alpar Juttner <alpar@…>
Branch:
default
Children:
369:65f80c81d41c, 370:3f0ddf255524, 374:afd134142111
Phase:
public
Message:

Wrap around the usages of windows.h

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/random.h

    r340 r368  
    7878#include <unistd.h>
    7979#else
    80 #include <windows.h>
     80#include <lemon/bits/windows.h>
    8181#endif
    8282
     
    667667      seed(getpid() + tv.tv_sec + tv.tv_usec);
    668668#else
    669       FILETIME time;
    670       GetSystemTimeAsFileTime(&time);
    671       seed(GetCurrentProcessId() + time.dwHighDateTime + time.dwLowDateTime);
     669      seed(bits::getWinRndSeed());
    672670#endif
    673671      return true;
Note: See TracChangeset for help on using the changeset viewer.