mirror of https://github.com/ARMmbed/mbed-os.git
[NUC472] Resolve TRNG GCC warning
parent
3ff2df1875
commit
ec945db013
|
@ -86,7 +86,7 @@ int trng_get_bytes(trng_t *obj, uint8_t *output, size_t length, size_t *output_l
|
|||
memcpy(output, &tmpBuff, length);
|
||||
*output_length = length;
|
||||
} else {
|
||||
for (int i = 0; i < (length/32); i++) {
|
||||
for (size_t i = 0; i < (length/32); i++) {
|
||||
trng_get(output);
|
||||
*output_length += 32;
|
||||
output += 32;
|
||||
|
|
Loading…
Reference in New Issue