diff options
author | Bradley T. Hughes <bradley.hughes@nokia.com> | 2010-05-04 14:25:18 (GMT) |
---|---|---|
committer | Bradley T. Hughes <bradley.hughes@nokia.com> | 2010-05-04 14:26:38 (GMT) |
commit | 0ebc9783d8ca0c4b27208bbc002c53c52c19ab4c (patch) | |
tree | 886de5e67856eac4b6da2fb7b955465dbc168ac8 /src/gui/painting | |
parent | 62201af6fd7a704e936692231b35342ce051bb08 (diff) | |
download | Qt-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.cpp | 2 |
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); |