C_GenerateRandom

This function operates as specified in PKCS#11.

Also note this function will only operate for those tokens with the CKF_RNG flag set in their CK_TOKEN_INFO flags.

Synopsis

C_GenerateRandom(
        CK_SESSION_HANDLE hSession,
        CK_BYTE_PTR pRandomData,
        CK_ULONG ulRandomLen 
);