libnx/nx/include/switch/services/csrng.h
friedkeenan da4c060278 Add a bunch of GetServiceSession functions (#305)
* Add a bunch of GetServiceSession functions
2019-07-13 15:09:28 -04:00

16 lines
373 B
C

/**
* @file csrng.h
* @brief Cryptographically-Secure Random Number Generation (csrng) service IPC wrapper.
* @author SciresM
* @copyright libnx Authors
*/
#pragma once
#include "../types.h"
#include "../services/sm.h"
Result csrngInitialize(void);
void csrngExit(void);
Service* csrngGetServiceSession(void);
Result csrngGetRandomBytes(void *out, size_t out_size);