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.
 

Detailed Description

Exports for User.


Using this library in your project

Include the header file in your project:


Link the library to the executable:

SceSblSsMgr_stub




Data Structure Documentation

◆ SceKernelGetRandomNumberParam

struct SceKernelGetRandomNumberParam
Data Fields
SceUInt32 dst_size Number of bytes copied to the destination; must be at most 0x40.
SceUInt32 reserved Ignored on FW 3.60.

Function Documentation

◆ VITASDK_BUILD_ASSERT_EQ()

VITASDK_BUILD_ASSERT_EQ ( 8  ,
SceKernelGetRandomNumberParam   
)

◆ _sceKernelGetRandomNumber()

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.

Parameters
[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.
Returns
0 on success, < 0 on error.

Variable Documentation

◆ dst_size

SceUInt32 SceKernelGetRandomNumberParam::dst_size

Number of bytes copied to the destination; must be at most 0x40.

◆ reserved

SceUInt32 SceKernelGetRandomNumberParam::reserved

Ignored on FW 3.60.