summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-10-29 06:51:29 +0100
committerGitHub <noreply@github.com>2020-10-29 06:51:29 +0100
commitc5134cbf3a65941e1d7214d73f5775aab78074f5 (patch)
tree8d52c2d73c63e3a88b590d62f3fa1e1be2ef28b9 /src/core
parentMerge pull request #4838 from lioncash/syncmgr (diff)
parentkernel: Use the current time as the default RNG seed (diff)
downloadyuzu-c5134cbf3a65941e1d7214d73f5775aab78074f5.tar
yuzu-c5134cbf3a65941e1d7214d73f5775aab78074f5.tar.gz
yuzu-c5134cbf3a65941e1d7214d73f5775aab78074f5.tar.bz2
yuzu-c5134cbf3a65941e1d7214d73f5775aab78074f5.tar.lz
yuzu-c5134cbf3a65941e1d7214d73f5775aab78074f5.tar.xz
yuzu-c5134cbf3a65941e1d7214d73f5775aab78074f5.tar.zst
yuzu-c5134cbf3a65941e1d7214d73f5775aab78074f5.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/kernel/process.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/kernel/process.cpp b/src/core/hle/kernel/process.cpp
index ff9d9248b..4cc77c635 100644
--- a/src/core/hle/kernel/process.cpp
+++ b/src/core/hle/kernel/process.cpp
@@ -123,7 +123,7 @@ std::shared_ptr<Process> Process::Create(Core::System& system, std::string name,
: kernel.CreateNewUserProcessID();
process->capabilities.InitializeForMetadatalessProcess();
- std::mt19937 rng(Settings::values.rng_seed.GetValue().value_or(0));
+ std::mt19937 rng(Settings::values.rng_seed.GetValue().value_or(std::time(nullptr)));
std::uniform_int_distribution<u64> distribution;
std::generate(process->random_entropy.begin(), process->random_entropy.end(),
[&] { return distribution(rng); });