mirror of https://github.com/ARMmbed/mbed-os.git
comments the performance of TRNG
Signed-off-by: PARKJIHOON <jh6186.park@samsung.com>pull/12106/head
parent
3ba075b57b
commit
8b0fb5f5bd
|
@ -42,6 +42,7 @@ int trng_get_bytes(trng_t *obj, uint8_t *output, size_t length, size_t *output_l
|
|||
unsigned int ret = 0;
|
||||
|
||||
stRANDOM.pu08Data = (u08 *)output;
|
||||
//generate an approximation of 1
|
||||
ret = sss_generate_rawrandom(&stRANDOM, length);
|
||||
|
||||
*output_length = (size_t)stRANDOM.u32DataByteLen;
|
||||
|
|
Loading…
Reference in New Issue