diff options
author | bunnei <bunneidev@gmail.com> | 2020-04-17 06:59:08 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2020-04-17 06:59:36 +0200 |
commit | 8bbe74a8dc62cd3933fd08237e707b0059fe8a78 (patch) | |
tree | 61b6af4968dcb52ba84aebdffd3cff0f3c5864ce /src/core/hle/kernel/memory/system_control.cpp | |
parent | core: device_memory: Remove incorrect usage of constexpr. (diff) | |
download | yuzu-8bbe74a8dc62cd3933fd08237e707b0059fe8a78.tar yuzu-8bbe74a8dc62cd3933fd08237e707b0059fe8a78.tar.gz yuzu-8bbe74a8dc62cd3933fd08237e707b0059fe8a78.tar.bz2 yuzu-8bbe74a8dc62cd3933fd08237e707b0059fe8a78.tar.lz yuzu-8bbe74a8dc62cd3933fd08237e707b0059fe8a78.tar.xz yuzu-8bbe74a8dc62cd3933fd08237e707b0059fe8a78.tar.zst yuzu-8bbe74a8dc62cd3933fd08237e707b0059fe8a78.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/kernel/memory/system_control.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/kernel/memory/system_control.cpp b/src/core/hle/kernel/memory/system_control.cpp index e61522dc0..9cae3c6cb 100644 --- a/src/core/hle/kernel/memory/system_control.cpp +++ b/src/core/hle/kernel/memory/system_control.cpp @@ -11,9 +11,9 @@ namespace Kernel::Memory::SystemControl { u64 GenerateRandomU64ForInit() { - std::random_device device; - std::mt19937 gen(device()); - std::uniform_int_distribution<u64> distribution(1, std::numeric_limits<u64>::max()); + static std::random_device device; + static std::mt19937 gen(device()); + static std::uniform_int_distribution<u64> distribution(1, std::numeric_limits<u64>::max()); return distribution(gen); } |