comments the performance of TRNG

Signed-off-by: PARKJIHOON <jh6186.park@samsung.com>
pull/12106/head
PARKJIHOON 2020-01-15 00:20:09 +09:00 committed by Andrew Chong
parent 3ba075b57b
commit 8b0fb5f5bd
1 changed files with 1 additions and 0 deletions

View File

@ -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;