COIN-OR::LEMON - Graph Library

Changeset 482:879c55700cd4 in lemon-1.2 for lemon/random.h


Ignore:
Timestamp:
02/16/09 16:03:32 (11 years ago)
Author:
Alpar Juttner <alpar@…>
Branch:
default
Children:
483:3f0ddf255524, 487:afd134142111, 515:b9b3473327e3
Phase:
public
Message:

Wrap around the usages of windows.h

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/random.h

    r377 r482  
    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.