src/gui/painting/qpaintengine_x11.cpp
branchGCC_SURGE
changeset 31 5daf16870df6
parent 30 5dc02b23752f
child 33 3e2da88830cd
--- a/src/gui/painting/qpaintengine_x11.cpp	Mon Jun 21 22:38:13 2010 +0100
+++ b/src/gui/painting/qpaintengine_x11.cpp	Thu Jul 22 16:41:55 2010 +0100
@@ -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);