diff options
author | Robert Tari <robert@tari.in> | 2022-02-18 00:35:47 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2022-02-18 08:25:19 +0100 |
commit | e112ae970b0719de8158fdc1deb281e2ee098390 (patch) | |
tree | d2b0ebe43f0857e771d55d245c46588938237384 /tests/integration/test-indicator.cpp | |
parent | 412bb6e3c6de84096722ca93be7c36733f0c189b (diff) | |
download | ayatana-indicator-sound-e112ae970b0719de8158fdc1deb281e2ee098390.tar.gz ayatana-indicator-sound-e112ae970b0719de8158fdc1deb281e2ee098390.tar.bz2 ayatana-indicator-sound-e112ae970b0719de8158fdc1deb281e2ee098390.zip |
Fix build warnings
Diffstat (limited to 'tests/integration/test-indicator.cpp')
-rw-r--r-- | tests/integration/test-indicator.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/integration/test-indicator.cpp b/tests/integration/test-indicator.cpp index cbf1c6d..624176a 100644 --- a/tests/integration/test-indicator.cpp +++ b/tests/integration/test-indicator.cpp @@ -1,6 +1,6 @@ /* * Copyright 2015 Canonical Ltd. - * Copyright 2021 Robert Tari + * Copyright 2021-2022 Robert Tari * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published @@ -276,8 +276,8 @@ TEST_F(TestIndicator, DISABLED_PhoneChangeRoleVolume) // Generate a random volume in the range [0...0.33] QTime now = QTime::currentTime(); - qsrand(now.msec()); - int randInt = qrand() % 33; + QRandomGenerator::global()->bounded(now.msec()); + int randInt = QRandomGenerator::global()->generate() % 33; const double randomVolume = randInt / 100.0; QSignalSpy &userAccountsSpy = *signal_spy_volume_changed_; @@ -1412,8 +1412,8 @@ TEST_F(TestIndicator, DISABLED_DesktopChangeRoleVolume) // Generate a random volume in the range [0...0.33] QTime now = QTime::currentTime(); - qsrand(now.msec()); - int randInt = qrand() % 33; + QRandomGenerator::global()->bounded(now.msec()); + int randInt = QRandomGenerator::global()->generate() % 33; const double randomVolume = randInt / 100.0; // play a test sound, it should NOT change the role in the indicator |