mirror of
https://github.com/starr-dusT/yuzu-mainline
synced 2024-03-05 21:12:25 -08:00
Merge pull request #4801 from lioncash/missing-bound
mii/manager: Make use of unused lower bound in GetRandomValue()
This commit is contained in:
commit
2190f1a2b7
@ -131,7 +131,7 @@ template <typename T>
|
|||||||
T GetRandomValue(T min, T max) {
|
T GetRandomValue(T min, T max) {
|
||||||
std::random_device device;
|
std::random_device device;
|
||||||
std::mt19937 gen(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));
|
return static_cast<T>(distribution(gen));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user