mirror of
https://github.com/clementine-player/Clementine
synced 2025-02-02 20:36:44 +01:00
f04657e7e7
QRandomGenerator was introduced in 5.10 and qrand has since been deprecated. QRandomGenerator::global() returns a global instance that has been securely seeded. QRandomGenerator provides methods that generate values within ranges, so taking a modulus of the result isn't necessary.