summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qfilesystemengine_unix.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2017-10-21 11:24:54 -0700
committerThiago Macieira <thiago.macieira@intel.com>2017-11-20 15:49:36 +0000
commit3c7a6a7a581f9ea6f05a22a912d660c5402a1fa8 (patch)
tree2dfc0d1c7ecc59fab766a972c8aa694b2ba3a3d5 /src/corelib/io/qfilesystemengine_unix.cpp
parentbb3872d60975724a50ff910b6dd108d1944db597 (diff)
QRandomGenerator: Enforce the use of 32-bit integers in the engine
std::mt19937 is defined as operating on uint_fast32_t, which is usually just a 32-bit integer. That's not the case on 64-bit Linux, where it is actually 64-bit wide, meaning sizeof(std::mt19937) jumps from 2504 to 5000 bytes, with exactly 50% of it filled with zeroes. The seed() function also needs a large zero-extending loop. Change-Id: Icaa86fc7b54d4b368c0efffd14efa911e2a40b44 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/corelib/io/qfilesystemengine_unix.cpp')
0 files changed, 0 insertions, 0 deletions