spl: Add the general SPL interface

This commit is contained in:
Morph
2021-06-15 02:36:52 -04:00
parent faf11fe46d
commit ded36b8688
4 changed files with 64 additions and 45 deletions

View File

@ -9,7 +9,7 @@ namespace Service::SPL {
CSRNG::CSRNG(Core::System& system_, std::shared_ptr<Module> module_)
: Interface(system_, std::move(module_), "csrng") {
static const FunctionInfo functions[] = {
{0, &CSRNG::GetRandomBytes, "GetRandomBytes"},
{0, &CSRNG::GenerateRandomBytes, "GenerateRandomBytes"},
};
RegisterHandlers(functions);
}