summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/memory/system_control.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-04-17 06:59:08 +0200
committerbunnei <bunneidev@gmail.com>2020-04-17 06:59:36 +0200
commit8bbe74a8dc62cd3933fd08237e707b0059fe8a78 (patch)
tree61b6af4968dcb52ba84aebdffd3cff0f3c5864ce /src/core/hle/kernel/memory/system_control.cpp
parentcore: device_memory: Remove incorrect usage of constexpr. (diff)
downloadyuzu-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.cpp6
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);
}