]> git.saurik.com Git - wxWidgets.git/commitdiff
Applied WinCE fix, though data file still not found
authorJulian Smart <julian@anthemion.co.uk>
Mon, 9 Feb 2004 21:37:32 +0000 (21:37 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Mon, 9 Feb 2004 21:37:32 +0000 (21:37 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25688 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

demos/poem/wxpoem.cpp

index e0c04ad435529b7c40336a1b9b7430c3677c0b9e..9bdca453e93ca271a0c29136ff490535ddf8809d 100644 (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;