vitasdk
Documentation of the vitasdk
sblrng.h
Go to the documentation of this file.
1
6
#ifndef _PSP2_SBLRNG_H_
7
#define _PSP2_SBLRNG_H_
8
9
#include <
vitasdk/build_utils.h
>
10
#include <
psp2/types.h
>
11
12
#ifdef __cplusplus
13
extern
"C"
{
14
#endif
15
16
typedef
struct
SceKernelGetRandomNumberParam
{
17
SceUInt32
dst_size
;
18
SceUInt32
reserved
;
19
}
SceKernelGetRandomNumberParam
;
20
VITASDK_BUILD_ASSERT_EQ
(8,
SceKernelGetRandomNumberParam
);
// size is from FW 3.60
21
36
int
_sceKernelGetRandomNumber
(
void
*dst,
SceSize
length
,
const
SceKernelGetRandomNumberParam
*param);
37
38
#ifdef __cplusplus
39
}
40
#endif
41
42
#endif
/* _PSP2_SBLRNG_H_ */
build_utils.h
VITASDK_BUILD_ASSERT_EQ
#define VITASDK_BUILD_ASSERT_EQ(__size__, __name__)
Definition
build_utils.h:13
length
uint32_t length
Definition
bt.h:7
_sceKernelGetRandomNumber
int _sceKernelGetRandomNumber(void *dst, SceSize length, const SceKernelGetRandomNumberParam *param)
Generate up to 0x40 bytes using SceSblRng's pseudorandom generator.
SceKernelGetRandomNumberParam::dst_size
SceUInt32 dst_size
Number of bytes copied to the destination; must be at most 0x40.
Definition
sblrng.h:17
SceKernelGetRandomNumberParam::reserved
SceUInt32 reserved
Ignored on FW 3.60.
Definition
sblrng.h:18
SceKernelGetRandomNumberParam
Definition
sblrng.h:16
SceSize
unsigned int SceSize
Definition
types.h:56
SceUInt32
uint32_t SceUInt32
Definition
types.h:45
types.h
include
psp2
sblrng.h
Vita SDK