/* sgx_read_rand()
* Parameters:
* rand - the buffer to receive the random number
* length_in_bytes - the number of bytes to read the random number
* Return Value:
* SGX_SUCCESS - success
* SGX_ERROR_INVALID_PARAMETER - the parameter is invalid
* SGX_ERROR_UNEXPECTED - HW failure of RDRAND instruction
*/
sgx_status_t SGXAPI sgx_read_rand(unsigned char *rand, size_t length_in_bytes);
rand是一个数组,里面是生成的随机数,length_in_bytes用来控制rand里随机数的个数。