summaryrefslogtreecommitdiff
path: root/include/user/kernel/rng.h
diff options
context:
space:
mode:
authorxyzz2016-08-15 04:49:22 -0700
committerxyzz2016-08-15 04:49:22 -0700
commit541aa5ead4fd5dd7116485322b6d9e3061b9baca (patch)
tree8d9d471dbd39eb17a6ca64f05c5b3cf3f9c32885 /include/user/kernel/rng.h
parentMerge pull request #19 from endrift/lightbar (diff)
downloadvds-libraries-541aa5ead4fd5dd7116485322b6d9e3061b9baca.tar.gz
Add sceKernelGetRandomNumber
Diffstat (limited to '')
-rw-r--r--include/user/kernel/rng.h14
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