From a6f28223ee2e8afe7c94fa288859458b99ace7dd Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Mon, 9 Feb 2004 21:37:32 +0000 Subject: [PATCH] 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 --- demos/poem/wxpoem.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) 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;