在卡内产生随机数。

参数
[in] hcontexthandle
一个已经成功打开的设备的句柄。
[out] puchrand
产生的随机数。
[in] ulrandlen
产生的随机数的长度。
[in] ulflag
保留,输入0。
要求
esfp_opendev
返回值
esf_success:成功
其它:见“api返回码说明”。
示例代码
esf_handle hcontexthandle = null;
esf_rv irv;
unsigned char uchrand[500];
irv = esfp_getrandom(hcontexthandle, uchrand, 16, 0);
return irv;
此函数产生的随机数供上层调用。
参见
esfp_opendev