summaryrefslogtreecommitdiffstats
path: root/src/gui/painting
diff options
context:
space:
mode:
authorBradley T. Hughes <bradley.hughes@nokia.com>2010-05-04 14:25:18 (GMT)
committerBradley T. Hughes <bradley.hughes@nokia.com>2010-05-04 14:26:38 (GMT)
commit0ebc9783d8ca0c4b27208bbc002c53c52c19ab4c (patch)
tree886de5e67856eac4b6da2fb7b955465dbc168ac8 /src/gui/painting
parent62201af6fd7a704e936692231b35342ce051bb08 (diff)
downloadQt-0ebc9783d8ca0c4b27208bbc002c53c52c19ab4c.zip
Qt-0ebc9783d8ca0c4b27208bbc002c53c52c19ab4c.tar.gz
Qt-0ebc9783d8ca0c4b27208bbc002c53c52c19ab4c.tar.bz2
Use qrand() instead of rand()
This only affects X11 code, and are the only 2 places in Qt where rand() is used instead of qrand(). Task-number: QTBUG-9793 Reviewed-by: TrustMe
Diffstat (limited to 'src/gui/painting')
-rw-r--r--src/gui/painting/qpaintengine_x11.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/painting/qpaintengine_x11.cpp b/src/gui/painting/qpaintengine_x11.cpp
index da48fcb..aef8b80 100644
--- a/src/gui/painting/qpaintengine_x11.cpp
+++ b/src/gui/painting/qpaintengine_x11.cpp
@@ -315,7 +315,7 @@ static Picture getPatternFill(int screen, const QBrush &b)
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);