![]() |
vitasdk
Documentation of the vitasdk
|
Exports for User. More...
Data Structures | |
| struct | SceKernelGetRandomNumberParam |
Functions | |
| VITASDK_BUILD_ASSERT_EQ (8, SceKernelGetRandomNumberParam) | |
| int | _sceKernelGetRandomNumber (void *dst, SceSize length, const SceKernelGetRandomNumberParam *param) |
| Generate up to 0x40 bytes using SceSblRng's pseudorandom generator. | |
Variables | |
| SceUInt32 | SceKernelGetRandomNumberParam::dst_size |
| Number of bytes copied to the destination; must be at most 0x40. | |
| SceUInt32 | SceKernelGetRandomNumberParam::reserved |
| Ignored on FW 3.60. | |
Exports for User.
Include the header file in your project:
Link the library to the executable:
| struct SceKernelGetRandomNumberParam |
| VITASDK_BUILD_ASSERT_EQ | ( | 8 | , |
| SceKernelGetRandomNumberParam | |||
| ) |
| int _sceKernelGetRandomNumber | ( | void * | dst, |
| SceSize | length, | ||
| const SceKernelGetRandomNumberParam * | param | ||
| ) |
Generate up to 0x40 bytes using SceSblRng's pseudorandom generator.
The function first generates length bytes, then copies SceKernelGetRandomNumberParam::dst_size bytes to dst. If this count is larger than length, the extra bytes are zero. The public sceKernelGetRandomNumber wrapper sets both sizes to the same value.
| [out] | dst | - Required destination buffer. |
| [in] | length | - Number of random bytes to generate; must be at most 0x40. |
| [in] | param | - Required eight-byte input parameter structure. |
| SceUInt32 SceKernelGetRandomNumberParam::dst_size |
Number of bytes copied to the destination; must be at most 0x40.
| SceUInt32 SceKernelGetRandomNumberParam::reserved |
Ignored on FW 3.60.