diff -r b72c6db6890b -r 5dc02b23752f src/gui/painting/qpaintengine_x11.cpp --- 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);