Details
-
Bug
-
Resolution: Out of scope
-
P1: Critical
-
5.10.1, 5.11.0
-
None
-
Win7
Win10
-
-
5839714d986f28412c9f9ed4801d1bf9378f7b51 (qt/qtbase/5.13) d1646b37b1f0a04dc79a10438b82ed231786e871 (qt/qtbase/5.12), 6543f5053 (dev), 30d40a889 (6.8)
Description
I currently use QTemporaryFile on to generate unique names (template length of 8 X). On some win 7 & 10 systems I get bonkers results:
LHILHILH.pdf OtNOtNOt.pdf ZLsZLsZL.pdf
As you can see the template repeats after three characters. Reading the source code at https://github.com/qt/qtbase/blob/4ba535616b8d3dfda7fbe162c6513f3008c1077a/src/corelib/io/qtemporaryfile.cpp#L168 it becomes clear that one call to QRandomGenerator::generate serves as randomness for 3 characters. This is fine; but the issue I am seeing here is that subsequent calls generate the same random number. This happens only for on customer and I do not even know where to start debugging this...
Attachments
For Gerrit Dashboard: QTBUG-69423 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
272837,12 | Fix QRandomGenerator initialization on AMD CPUs | 5.13 | qt/qtbase | Status: MERGED | +2 | 0 |
275914,2 | Fix QRandomGenerator initialization on AMD CPUs | 5.12 | qt/qtbase | Status: MERGED | +2 | 0 |
594304,2 | Remove dead code in checkRdrndWorks() if __RDRND__ is defined | dev | qt/qtbase | Status: MERGED | +2 | 0 |
595854,2 | Remove dead code in checkRdrndWorks() if __RDRND__ is defined | 6.8 | qt/qtbase | Status: MERGED | +2 | 0 |