summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-10-18 08:32:40 +0200
committerGitHub <noreply@github.com>2020-10-18 08:32:40 +0200
commit2190f1a2b7f3edd727315f7b570ee2408f3c5096 (patch)
tree0112cacf3cdeb8bce4524cdfb76582ab793baf15 /src/core
parentMerge pull request #4782 from ReinUsesLisp/remove-dyn-primitive (diff)
parentmii/manager: Make use of unused lower bound in GetRandomValue() (diff)
downloadyuzu-2190f1a2b7f3edd727315f7b570ee2408f3c5096.tar
yuzu-2190f1a2b7f3edd727315f7b570ee2408f3c5096.tar.gz
yuzu-2190f1a2b7f3edd727315f7b570ee2408f3c5096.tar.bz2
yuzu-2190f1a2b7f3edd727315f7b570ee2408f3c5096.tar.lz
yuzu-2190f1a2b7f3edd727315f7b570ee2408f3c5096.tar.xz
yuzu-2190f1a2b7f3edd727315f7b570ee2408f3c5096.tar.zst
yuzu-2190f1a2b7f3edd727315f7b570ee2408f3c5096.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/service/mii/manager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/service/mii/manager.cpp b/src/core/hle/service/mii/manager.cpp
index 8e433eb41..d73b90015 100644
--- a/src/core/hle/service/mii/manager.cpp
+++ b/src/core/hle/service/mii/manager.cpp
@@ -131,7 +131,7 @@ template <typename T>
T GetRandomValue(T min, T max) {
std::random_device device;
std::mt19937 gen(device());
- std::uniform_int_distribution<u64> distribution(0, static_cast<u64>(max));
+ std::uniform_int_distribution<u64> distribution(static_cast<u64>(min), static_cast<u64>(max));
return static_cast<T>(distribution(gen));
}