Fix randomization in color scheme

Review Request #129342 - Created Nov. 5, 2016 and submitted

Information
Martin Tobias Holmedahl Sandsmark
konsole
Reviewers
konsole
hindenburg
Use the new std::random APIs in c++11 for generating random numbers which is much safer and doesn't abuse qsrand().

This also means we don't need to copy in the QUuid::createUuid() code anymore, which generated a warning in ubsan.

It still generates random colors; all three HSV values are randomized properly and deterministically according to the randomSeed. Doesn't complain about Session::createUuid() anymore.

Martin Tobias Holmedahl Sandsmark
Martin Tobias Holmedahl Sandsmark
Kurt Hindenburg
Martin Tobias Holmedahl Sandsmark
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted with commit 3ff022527e53cd5daa6fe8589de81b5988457945 by Martin T. H. Sandsmark to branch master.
Loading...