nn::ssl::GenerateRandomBytes Function

Syntax

Result GenerateRandomBytes(
     u8 pOutData[],
     size_t outDataSize
);

Arguments

Name Description
out pOutData[] Buffer that stores a random number.
in outDataSize Size of pOutData.

Return Values

Returns the function's execution result. Returns one of the Result values listed below.
Value Description
ResultSuccess Process was successful.
ResultNotInitializedErr Error indicating that the library is not initialized. None of the functions in this library can be run without first running nn::ssl::Initialize.
A value other than the above. Unexpected error (see ssl_Result.h for error details).

Description

Gets a random number.

Revision History

2010/08/16
Initial version.

CONFIDENTIAL