diff options
Diffstat (limited to 'include/user/kernel')
-rw-r--r-- | include/user/kernel/rng.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/user/kernel/rng.h b/include/user/kernel/rng.h new file mode 100644 index 0000000..2474a48 --- /dev/null +++ b/include/user/kernel/rng.h @@ -0,0 +1,14 @@ +#ifndef _PSP2_KERNEL_RNG_H_ +#define _PSP2_KERNEL_RNG_H_ + +/*** + * Fills the output buffer with random data. + * + * @param[out] output - Output buffer + * @param[in] size - Size of the output buffer, 64 bytes maximum + * + * @return 0 on success, < 0 on error. +*/ +int sceKernelGetRandomNumber(void *output, unsigned size); + +#endif |