summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2018-11-13 03:46:21 +0100
committerZach Hilman <zachhilman@gmail.com>2018-11-13 03:46:21 +0100
commitcb1e63ef09a5cd775e916f6f4482cde3ea256f44 (patch)
tree602da495ef586abd466d5a06cd28270337b38e75 /src/core
parentsettings: Add config option to set RNG seed (diff)
downloadyuzu-cb1e63ef09a5cd775e916f6f4482cde3ea256f44.tar
yuzu-cb1e63ef09a5cd775e916f6f4482cde3ea256f44.tar.gz
yuzu-cb1e63ef09a5cd775e916f6f4482cde3ea256f44.tar.bz2
yuzu-cb1e63ef09a5cd775e916f6f4482cde3ea256f44.tar.lz
yuzu-cb1e63ef09a5cd775e916f6f4482cde3ea256f44.tar.xz
yuzu-cb1e63ef09a5cd775e916f6f4482cde3ea256f44.tar.zst
yuzu-cb1e63ef09a5cd775e916f6f4482cde3ea256f44.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/kernel/svc.cpp3
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();