summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service
diff options
context:
space:
mode:
authorlat9nq <22451773+lat9nq@users.noreply.github.com>2023-06-06 02:41:50 +0200
committerlat9nq <22451773+lat9nq@users.noreply.github.com>2023-07-21 16:56:07 +0200
commit413316560784348b8ea2684d272b974fd0428267 (patch)
treed3a9015a0dcf29744d45d630246a19d1fae83dd9 /src/core/hle/service
parentsettings: Pool SetGlobal functions (diff)
downloadyuzu-413316560784348b8ea2684d272b974fd0428267.tar
yuzu-413316560784348b8ea2684d272b974fd0428267.tar.gz
yuzu-413316560784348b8ea2684d272b974fd0428267.tar.bz2
yuzu-413316560784348b8ea2684d272b974fd0428267.tar.lz
yuzu-413316560784348b8ea2684d272b974fd0428267.tar.xz
yuzu-413316560784348b8ea2684d272b974fd0428267.tar.zst
yuzu-413316560784348b8ea2684d272b974fd0428267.zip
Diffstat (limited to 'src/core/hle/service')
-rw-r--r--src/core/hle/service/spl/spl_module.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hle/service/spl/spl_module.cpp b/src/core/hle/service/spl/spl_module.cpp
index 0227d4393..cd631b2ea 100644
--- a/src/core/hle/service/spl/spl_module.cpp
+++ b/src/core/hle/service/spl/spl_module.cpp
@@ -19,7 +19,8 @@ namespace Service::SPL {
Module::Interface::Interface(Core::System& system_, std::shared_ptr<Module> module_,
const char* name)
: ServiceFramework{system_, name}, module{std::move(module_)},
- rng(Settings::values.rng_seed.GetValue().value_or(std::time(nullptr))) {}
+ rng(Settings::values.rng_seed_enabled ? Settings::values.rng_seed.GetValue()
+ : static_cast<u32>(std::time(nullptr))) {}
Module::Interface::~Interface() = default;