summaryrefslogtreecommitdiff
path: root/include/user/kernel/rng.h
blob: 3187aa4c87ec6f2a395283c58b634c6b5b4ec30c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
	Vita Development Suite Libraries
*/

#ifndef _VDSUITE_USER_KERNEL_RNG_H
#define _VDSUITE_USER_KERNEL_RNG_H

#include <scetypes.h>

#ifdef __cplusplus
extern "C" {
#endif

/**
 * 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, SceSize size);

#ifdef __cplusplus
}
#endif

#endif /* _VDSUITE_USER_KERNEL_RNG_H */