diff options
author | xyzz | 2016-08-15 04:49:22 -0700 |
---|---|---|
committer | xyzz | 2016-08-15 04:49:22 -0700 |
commit | 541aa5ead4fd5dd7116485322b6d9e3061b9baca (patch) | |
tree | 8d9d471dbd39eb17a6ca64f05c5b3cf3f9c32885 /include | |
parent | Merge pull request #19 from endrift/lightbar (diff) | |
download | vds-libraries-541aa5ead4fd5dd7116485322b6d9e3061b9baca.tar.gz |
Add sceKernelGetRandomNumber
Diffstat (limited to 'include')
-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 |