From 7a8eacabd293b126c6e54e26553c25210111b211 Mon Sep 17 00:00:00 2001 From: wuzhenghui Date: Wed, 6 May 2026 11:48:09 +0800 Subject: [PATCH] fix(esp_hw_support): increase test rounds for in esp_random() test --- .../test_apps/esp_hw_support_unity_tests/main/test_random.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/esp_hw_support/test_apps/esp_hw_support_unity_tests/main/test_random.c b/components/esp_hw_support/test_apps/esp_hw_support_unity_tests/main/test_random.c index 4ac5f1a44c9..6f8fc1dc679 100644 --- a/components/esp_hw_support/test_apps/esp_hw_support_unity_tests/main/test_random.c +++ b/components/esp_hw_support/test_apps/esp_hw_support_unity_tests/main/test_random.c @@ -103,7 +103,7 @@ TEST_CASE("verify esp_random() bit balance 0/1 ratio", "[random]") #endif #endif - const size_t NUM_RANDOM = 50000; /* Need enough samples for statistical significance */ + const size_t NUM_RANDOM = 500000; /* Need enough samples for statistical significance */ const float EXPECTED_RATIO = 0.5f; /* Expected ratio of 1s */ const float TOLERANCE = 0.01f; /* Allow 1% deviation (49%-51%) */ uint32_t bit_counts[32] = {0}; /* Count of 1s for each bit position */