Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-69423

QRandomGenerator not random on certain Windows installations

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P1: Critical
    • 5.12.6, 5.13.2, 5.14.0 Beta 1
    • 5.10.1, 5.11.0
    • Core: Other
    • None
    • Win7
      Win10
    • Windows
    • 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

        1. error.png
          error.png
          208 kB
        2. hwcheck.png
          hwcheck.png
          197 kB
        3. hwtest.cpp
          5 kB
        4. results.png
          results.png
          22 kB
        For Gerrit Dashboard: QTBUG-69423
        # Subject Branch Project Status CR V

        Activity

          People

            thiago Thiago Macieira
            apollo13 Florian Apolloner
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes