src/gui/painting/qpaintengine_x11.cpp
changeset 30 5dc02b23752f
parent 18 2f34d5167611
child 33 3e2da88830cd
--- a/src/gui/painting/qpaintengine_x11.cpp	Wed Jun 23 19:07:03 2010 +0300
+++ b/src/gui/painting/qpaintengine_x11.cpp	Tue Jul 06 15:10:48 2010 +0300
@@ -315,7 +315,7 @@
             return X11->pattern_fills[i].picture;
     }
     // none found, replace one
-    int i = rand() % 16;
+    int i = qrand() % 16;
 
     if (X11->pattern_fills[i].screen != screen && X11->pattern_fills[i].picture) {
 	XRenderFreePicture (X11->display, X11->pattern_fills[i].picture);