summaryrefslogtreecommitdiff
path: root/include/user/kernel/rng.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/user/kernel/rng.h')
-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