svc: Return random seed for svcGetInfo RandomEntropy

This commit is contained in:
Zach Hilman 2018-11-12 21:46:21 -05:00
parent 2a16fd7ffc
commit cb1e63ef09
2 changed files with 8 additions and 4 deletions

View file

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