ePass1000 C/C++ API Reference Manual Version 2.0 |
The epas_GenRandom function returns device generated random data.
EPAS_STATUS EPAS_API epas_GenRandom( EPAS_HANDLE hContextHandle, // [in] unsigned long ulFlags, // [in] unsigned char* pucBuffer, // [in][out] unsigned long ulBufferSize // [in] );
epas_CreateContext, epas_OpenDevice
If the function succeeds, FT_SUCCESS returned.
For a list of all return codes, see Status Return Values.
EPAS_STATUS epsRet; EPAS_HANDLE handle; . . . unsigned char pRandomBuf[100]; epsRet = epas_GenRandom(handle,0,pRandomBuf,100);