From 6d8dab8e74ef16ea4a1681dfc30bb9641a91c1b2 Mon Sep 17 00:00:00 2001 From: Amir Cohen Date: Thu, 9 Aug 2018 09:54:44 +0300 Subject: [PATCH] Fix trng_len loop --- TESTS/mbed_hal/trng/main.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/TESTS/mbed_hal/trng/main.cpp b/TESTS/mbed_hal/trng/main.cpp index 16d791ca7e..ea661ba185 100644 --- a/TESTS/mbed_hal/trng/main.cpp +++ b/TESTS/mbed_hal/trng/main.cpp @@ -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; }