Fix trng_len loop

pull/7057/head
Amir Cohen 2018-08-09 09:54:44 +03:00 committed by Yossi Levy
parent 780d9c6dbf
commit 6d8dab8e74
1 changed files with 0 additions and 1 deletions

View File

@ -80,7 +80,6 @@ static int fill_buffer_trng(uint8_t *buffer, trng_t *trng_obj, size_t trng_len)
TEST_ASSERT_EQUAL_INT_MESSAGE(0, trng_res, "trng_get_bytes error!");
temp_size += output_length;
temp_in_buf += output_length;
trng_len -= output_length;
if (temp_size >= trng_len) {
break;
}