Skip to content

Commit 8b0fb5f

Browse files
jh6186andrewc-arm
authored andcommitted
comments the performance of TRNG
Signed-off-by: PARKJIHOON <[email protected]>
1 parent 3ba075b commit 8b0fb5f

File tree

1 file changed

+1
-0
lines changed
  • targets/TARGET_Samsung/security_subsystem/api

1 file changed

+1
-0
lines changed

targets/TARGET_Samsung/security_subsystem/api/trng_api.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ int trng_get_bytes(trng_t *obj, uint8_t *output, size_t length, size_t *output_l
4242
unsigned int ret = 0;
4343

4444
stRANDOM.pu08Data = (u08 *)output;
45+
//generate an approximation of 1
4546
ret = sss_generate_rawrandom(&stRANDOM, length);
4647

4748
*output_length = (size_t)stRANDOM.u32DataByteLen;

0 commit comments

Comments
 (0)