trunk/branch integration: Wince

This commit is contained in:
Marian Krivos 2011-08-22 17:47:02 +00:00
parent 8b5b500c0a
commit 422075e485

View File

@ -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
}