mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-31 03:27:40 +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.