mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-28 11:31:53 +01:00
trunk/branch integration: Wince
This commit is contained in:
@@ -69,6 +69,9 @@
|
|||||||
#include "Poco/Random.h"
|
#include "Poco/Random.h"
|
||||||
#include "Poco/RandomStream.h"
|
#include "Poco/RandomStream.h"
|
||||||
#include <ctime>
|
#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);
|
poco_assert (BREAK_0 <= stateSize && stateSize <= BREAK_4);
|
||||||
|
|
||||||
_pBuffer = new char[stateSize];
|
_pBuffer = new char[stateSize];
|
||||||
|
#if defined(_WIN32_WCE)
|
||||||
|
initState((UInt32) wceex_time(NULL), _pBuffer, stateSize);
|
||||||
|
#else
|
||||||
initState((UInt32) std::time(NULL), _pBuffer, stateSize);
|
initState((UInt32) std::time(NULL), _pBuffer, stateSize);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user