qt5base-lts/tests/auto/corelib/global
Dmitry Kazakov 5839714d98 Fix QRandomGenerator initialization on AMD CPUs
Some AMD CPUs (e.g. AMD A4-6250J and AMD Ryzen 3000-series) have a
failing random generation instruction, which always returns
0xffffffff, even when generation was "successful".

This code checks if hardware random generator generates four consecutive
equal numbers. If it does, then we probably have a failing one and
should disable it completely.

Change-Id: I38c87920ca2e8cce4143afbff5e453ce3845d11a
Fixes: QTBUG-69423
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
2019-09-26 19:52:50 +03:00
..
q_func_info Updated license headers 2016-01-21 18:55:18 +00:00
qflags Fix odd test in tst_qflags 2018-10-17 09:15:22 +00:00
qfloat16 Correct qfloat16's 1/inf == 0 test 2019-05-27 11:52:22 +02:00
qgetputenv QByteArray: toInt() and toDouble() ignore surrounding whitespaces 2018-07-07 19:58:18 +00:00
qglobal Use C++11 alignof as reference for Q_ALIGNOF, and fix test on Android 2019-06-17 17:13:22 +02:00
qglobalstatic tests: Unify license to GPL-EXCEPT 2017-04-03 07:18:46 +00:00
qhooks tst_qhooks: test that it's possible to chain multiple hooks together 2016-11-18 15:22:32 +00:00
qlogging Add cmdline feature to qmake 2019-02-18 07:12:14 +00:00
qnumeric Update the overflow functions to include qsizetype 2018-01-24 21:13:20 +00:00
qrand Updated license headers 2016-01-21 18:55:18 +00:00
qrandomgenerator Fix QRandomGenerator initialization on AMD CPUs 2019-09-26 19:52:50 +03:00
qtendian qendian: Fix float conversions 2018-10-28 22:26:56 +00:00
global.pro Long live QRandomGenerator 2017-06-12 06:14:34 +00:00