qt5base-lts/tests/auto/corelib
Thiago Macieira 5483b30868 QTemporaryFile: fix the generation of names from templates
First and most importantly, let's not use more than half of the template
for the application's PID. With over 71% of all PIDs on a typical Linux
system and 90% of those on a Darwin system having 5 decimal digits,
using them all in a template that is usually 6 characters long is
wasteful. That leaves only 1 character for the random part, thereby
reducing the number of temporary files possible to only 52. So limit the
PID to half the characters of the template.

Second, let's use QRandomGenerator::bounded to create the the random
part, instead of qrand (which is often unseeded at this point).

Change-Id: Icd0e0d4b27cb4e5eb892fffd14b52eda5e467395
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
2017-06-12 06:14:43 +00:00
..
animation Rename macos blacklisting to osx 2017-04-24 07:24:08 +00:00
codecs QTextCodec: add QStringView overloads 2017-04-06 12:05:33 +00:00
global Long live QRandomGenerator 2017-06-12 06:14:34 +00:00
io QTemporaryFile: fix the generation of names from templates 2017-06-12 06:14:43 +00:00
itemmodels Merge remote-tracking branch 'origin/5.9' into dev 2017-06-07 14:02:43 +02:00
json json: Add operator[] to QJsonDocument for implicit object and array access 2017-06-08 11:23:55 +00:00
kernel Merge remote-tracking branch 'origin/5.9' into dev 2017-06-07 14:02:43 +02:00
mimetypes Merge remote-tracking branch 'origin/5.9' into dev 2017-05-29 10:54:41 +02:00
plugin QUuid: add fromString(QStringView/QLatin1String) 2017-04-20 17:02:44 +00:00
statemachine Merge "Merge remote-tracking branch 'origin/5.6' into dev" into refs/staging/dev 2016-01-26 11:27:37 +00:00
thread Merge remote-tracking branch 'origin/5.9' into dev 2017-06-07 14:02:43 +02:00
tools Merge remote-tracking branch 'origin/5.9' into dev 2017-06-07 14:02:43 +02:00
xml Build examples and tests only if their requirements are met 2017-03-22 15:55:55 +00:00
corelib.pro Add support for Apple tvOS 2016-05-17 16:11:23 +00:00