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

QUuid::createUuid() is not reseeded when called from multiple threads

    XMLWordPrintable

Details

    Description

      QUuid::createUuid() only seeds the random number generator the first time it is called, and thus all subsequent calls from a particular thread use the same seed. Thus, QUuid::createUuid() always generates the same sequence of numbers for each calling thread, just as qrand() does.

      The class is indeed documented to be only re-entrant, but this static function should be made thread-safe.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            stormols Marius Storm-Olsen
            admin Administrator
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes