diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-08-02 20:25:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-02 20:25:52 +0200 |
commit | fca7d975fdbeb1c63677b80efc03920affee4b12 (patch) | |
tree | bbded6cf80886c6def87bae92cf6784340165de9 /src/core/hle/kernel/k_process.cpp | |
parent | Merge pull request #11204 from liamwhite/eds3-blend-amd (diff) | |
parent | config(qt): Fix name of network category (diff) | |
download | yuzu-fca7d975fdbeb1c63677b80efc03920affee4b12.tar yuzu-fca7d975fdbeb1c63677b80efc03920affee4b12.tar.gz yuzu-fca7d975fdbeb1c63677b80efc03920affee4b12.tar.bz2 yuzu-fca7d975fdbeb1c63677b80efc03920affee4b12.tar.lz yuzu-fca7d975fdbeb1c63677b80efc03920affee4b12.tar.xz yuzu-fca7d975fdbeb1c63677b80efc03920affee4b12.tar.zst yuzu-fca7d975fdbeb1c63677b80efc03920affee4b12.zip |
Diffstat (limited to 'src/core/hle/kernel/k_process.cpp')
-rw-r--r-- | src/core/hle/kernel/k_process.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hle/kernel/k_process.cpp b/src/core/hle/kernel/k_process.cpp index 44c7cb22f..e573e2a57 100644 --- a/src/core/hle/kernel/k_process.cpp +++ b/src/core/hle/kernel/k_process.cpp @@ -81,7 +81,8 @@ Result KProcess::Initialize(KProcess* process, Core::System& system, std::string process->m_capabilities.InitializeForMetadatalessProcess(); process->m_is_initialized = true; - std::mt19937 rng(Settings::values.rng_seed.GetValue().value_or(std::time(nullptr))); + std::mt19937 rng(Settings::values.rng_seed_enabled ? Settings::values.rng_seed.GetValue() + : static_cast<u32>(std::time(nullptr))); std::uniform_int_distribution<u64> distribution; std::generate(process->m_random_entropy.begin(), process->m_random_entropy.end(), [&] { return distribution(rng); }); |