Skip to content

Commit 6d8dab8

Browse files
theamirocohenYossi Levy
authored and
Yossi Levy
committed
Fix trng_len loop
1 parent 780d9c6 commit 6d8dab8

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

TESTS/mbed_hal/trng/main.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ static int fill_buffer_trng(uint8_t *buffer, trng_t *trng_obj, size_t trng_len)
8080
TEST_ASSERT_EQUAL_INT_MESSAGE(0, trng_res, "trng_get_bytes error!");
8181
temp_size += output_length;
8282
temp_in_buf += output_length;
83-
trng_len -= output_length;
8483
if (temp_size >= trng_len) {
8584
break;
8685
}

0 commit comments

Comments
 (0)