COIN-OR::LEMON - Graph Library

Changeset 511:879c55700cd4 in lemon for lemon/random.h


Ignore:
Timestamp:
02/16/09 16:03:32 (11 years ago)
Author:
Alpar Juttner <alpar@…>
Branch:
default
Children:
512:65f80c81d41c, 513:3f0ddf255524, 517:afd134142111, 562:b9b3473327e3
Phase:
public
Message:

Wrap around the usages of windows.h

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/random.h

    r391 r511  
    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.