diff options
author | bunnei <bunneidev@gmail.com> | 2018-11-13 06:10:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-13 06:10:08 +0100 |
commit | 7f3c2525e6928ff6df7e19d8c01172c5ebacc02e (patch) | |
tree | 070cf3a270789b3645b401b8b9f4ea928baaf2f3 /src/core/hle/kernel | |
parent | Merge pull request #1665 from ogniK5377/GetClockSnapshot (diff) | |
parent | svc: Return random seed for svcGetInfo RandomEntropy (diff) | |
download | yuzu-7f3c2525e6928ff6df7e19d8c01172c5ebacc02e.tar yuzu-7f3c2525e6928ff6df7e19d8c01172c5ebacc02e.tar.gz yuzu-7f3c2525e6928ff6df7e19d8c01172c5ebacc02e.tar.bz2 yuzu-7f3c2525e6928ff6df7e19d8c01172c5ebacc02e.tar.lz yuzu-7f3c2525e6928ff6df7e19d8c01172c5ebacc02e.tar.xz yuzu-7f3c2525e6928ff6df7e19d8c01172c5ebacc02e.tar.zst yuzu-7f3c2525e6928ff6df7e19d8c01172c5ebacc02e.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/kernel/svc.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp index 7e8e87c33..0bfe1e3be 100644 --- a/src/core/hle/kernel/svc.cpp +++ b/src/core/hle/kernel/svc.cpp @@ -34,6 +34,7 @@ #include "core/hle/lock.h" #include "core/hle/result.h" #include "core/hle/service/service.h" +#include "core/settings.h" namespace Kernel { namespace { @@ -558,7 +559,7 @@ static ResultCode GetInfo(u64* result, u64 info_id, u64 handle, u64 info_sub_id) *result = 0; break; case GetInfoType::RandomEntropy: - *result = 0; + *result = Settings::values.rng_seed.value_or(0); break; case GetInfoType::ASLRRegionBaseAddr: *result = vm_manager.GetASLRRegionBaseAddress(); |