VERY experimental Nintendo Switch 2 emulator
C++
kernel: Use the current time as the default RNG seed
lat9nq2974d72a2a62
diff --git a/src/core/hle/kernel/process.cpp b/src/core/hle/kernel/process.cppindex ff9d9248b0..4cc77c6353 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); });