summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorlat9nq <lat9nq@virginia.edu>2020-10-27 02:42:11 +0100
committerlat9nq <lat9nq@virginia.edu>2020-10-27 02:42:11 +0100
commit8bd246032af3e93e05535d8cc2e4ad312a664050 (patch)
treea106597dfacba7789d091efda26bc3b2823ddb7a /src/core
parentMerge pull request #4827 from lioncash/trunc (diff)
downloadyuzu-8bd246032af3e93e05535d8cc2e4ad312a664050.tar
yuzu-8bd246032af3e93e05535d8cc2e4ad312a664050.tar.gz
yuzu-8bd246032af3e93e05535d8cc2e4ad312a664050.tar.bz2
yuzu-8bd246032af3e93e05535d8cc2e4ad312a664050.tar.lz
yuzu-8bd246032af3e93e05535d8cc2e4ad312a664050.tar.xz
yuzu-8bd246032af3e93e05535d8cc2e4ad312a664050.tar.zst
yuzu-8bd246032af3e93e05535d8cc2e4ad312a664050.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); });