settings,core,config_sys: Remove optional type from custom_rtc, rng_seed

core: Fix MSVC errors
This commit is contained in:
lat9nq 2023-06-05 20:41:50 -04:00
parent 5ccfaf0517
commit 4133165607
6 changed files with 32 additions and 25 deletions

View file

@ -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;