D5966: Fix race-condition in KRandom-seeding.

David Faure noreply at phabricator.kde.org
Tue May 30 06:44:10 UTC 2017


dfaure added inline comments.

INLINE COMMENTS

> tfry wrote in krandomtest.cpp:178
> If the results are not unique, some of the results will already be in the set, and so results.insert() does not increase the size of the set. Only if each thread result is unique, the set size will correspond to the number of threads.

Oh I see, you're right.

REPOSITORY
  R244 KCoreAddons

REVISION DETAIL
  https://phabricator.kde.org/D5966

To: tfry, dfaure
Cc: aacid, mpyne, tfry, rjvbb, #frameworks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20170530/858fdf84/attachment.html>


More information about the Kde-frameworks-devel mailing list