diff --git a/demos/poem/wxpoem.cpp b/demos/poem/wxpoem.cpp index e0c04ad435..9bdca453e9 100644 --- a/demos/poem/wxpoem.cpp +++ b/demos/poem/wxpoem.cpp @@ -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(¤t_time); srand((unsigned int)current_time); +#endif // randomize(); pages[0] = 0;