2022-04-23 22:49:07 +04:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2020-12-28 19:15:37 +04:00
|
|
|
|
|
|
|
#include "core/hle/service/spl/csrng.h"
|
|
|
|
|
|
|
|
namespace Service::SPL {
|
|
|
|
|
|
|
|
CSRNG::CSRNG(Core::System& system_, std::shared_ptr<Module> module_)
|
|
|
|
: Interface(system_, std::move(module_), "csrng") {
|
|
|
|
static const FunctionInfo functions[] = {
|
2021-06-23 16:35:57 +04:00
|
|
|
{0, &CSRNG::GenerateRandomBytes, "GenerateRandomBytes"},
|
2020-12-28 19:15:37 +04:00
|
|
|
};
|
|
|
|
RegisterHandlers(functions);
|
|
|
|
}
|
|
|
|
|
|
|
|
CSRNG::~CSRNG() = default;
|
|
|
|
|
|
|
|
} // namespace Service::SPL
|