summaryrefslogtreecommitdiffstats
path: root/src/tools/uic/cpp/cppextractimages.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2017-06-06 17:58:20 -0700
committerThiago Macieira <thiago.macieira@intel.com>2017-06-12 06:15:01 +0000
commitd57bf5e8aa6c575c4e3b9d80793e9becf1469d82 (patch)
tree597ed892cecf80675aafd45e6047a30a9a6a1bb7 /src/tools/uic/cpp/cppextractimages.cpp
parent629f3c0277632b9e799b30f4dccbbe41ec211eef (diff)
QRandomGenerator: mix the Linux AT_RANDOM random bytes in the fallback
The Linux kernel gives us 16 bytes of random data and sets a pointer to it in the ELF AuxV (the same one that allows us to get HWCAP on ARM systems). So if we end up in the fallback generator, at leat we'll get a good amount of entropy to seed the Mersenne Twister. This could happen if the application is run in a chroot(2) or container without /dev/random or /dev/urandom. That is probably an installation mistake, so we don't optimize this case for performance. With this commit, we have now good, high-quality fallbacks for Windows (rand_s), for BSDs (arc4random) and for Linux. The only missing, supported OS without a good entropy source is QNX. Change-Id: Ia3e896da908f42939148fffd14c5b1084051f1a8 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/tools/uic/cpp/cppextractimages.cpp')
0 files changed, 0 insertions, 0 deletions