summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qwidget_x11.cpp
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/kernel/qwidget_x11.cpp
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/kernel/qwidget_x11.cpp')
-rw-r--r--src/gui/kernel/qwidget_x11.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qwidget_x11.cpp b/src/gui/kernel/qwidget_x11.cpp
index 37ac6bf..43f510c 100644
--- a/src/gui/kernel/qwidget_x11.cpp
+++ b/src/gui/kernel/qwidget_x11.cpp
@@ -3000,7 +3000,7 @@ Picture QX11Data::getSolidFill(int screen, const QColor &c)
return X11->solid_fills[i].picture;
}
// none found, replace one
- int i = rand() % 16;
+ int i = qrand() % 16;
if (X11->solid_fills[i].screen != screen && X11->solid_fills[i].picture) {
XRenderFreePicture (X11->display, X11->solid_fills[i].picture);