summaryrefslogtreecommitdiff
path: root/include/user/kernel/rng.h
blob: 2474a4810204db6ce1c7543e4175249cabd960b6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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