Applied WinCE fix, though data file still not found

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25688 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart 2004-02-09 21:37:32 +00:00
parent 17d31882db
commit a6f28223ee

View File

@ -118,6 +118,10 @@ void CreateFonts();
#include "wx/clipbrd.h"
#endif
#ifdef __WXWINCE__
STDAPI_(__int64) CeGetRandomSeed();
#endif
IMPLEMENT_APP(MyApp)
MainWindow *TheMainWindow = NULL;
@ -523,10 +527,14 @@ bool MyApp::OnInit()
ReadPreferences();
// Seed the random number generator
#ifdef __WXWINCE__
srand((unsigned) CeGetRandomSeed());
#else
time_t current_time;
(void)time(&current_time);
srand((unsigned int)current_time);
#endif
// randomize();
pages[0] = 0;