mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-18 08:22:37 +01:00
trunk/branch integration: Wince
This commit is contained in:
parent
8b5b500c0a
commit
422075e485
@ -69,6 +69,9 @@
|
||||
#include "Poco/Random.h"
|
||||
#include "Poco/RandomStream.h"
|
||||
#include <ctime>
|
||||
#if defined(_WIN32_WCE)
|
||||
#include "wce_time.h"
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
@ -172,7 +175,11 @@ Random::Random(int stateSize)
|
||||
poco_assert (BREAK_0 <= stateSize && stateSize <= BREAK_4);
|
||||
|
||||
_pBuffer = new char[stateSize];
|
||||
#if defined(_WIN32_WCE)
|
||||
initState((UInt32) wceex_time(NULL), _pBuffer, stateSize);
|
||||
#else
|
||||
initState((UInt32) std::time(NULL), _pBuffer, stateSize);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user