diff options
author | bunnei <bunneidev@gmail.com> | 2020-10-18 08:32:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-18 08:32:40 +0200 |
commit | 2190f1a2b7f3edd727315f7b570ee2408f3c5096 (patch) | |
tree | 0112cacf3cdeb8bce4524cdfb76582ab793baf15 | |
parent | Merge pull request #4782 from ReinUsesLisp/remove-dyn-primitive (diff) | |
parent | mii/manager: Make use of unused lower bound in GetRandomValue() (diff) | |
download | yuzu-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 |
-rw-r--r-- | src/core/hle/service/mii/manager.cpp | 2 |
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)); } |