mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-01 18:50:34 +03:00
Merge branch 'fix/fix_random_ratio_test' into 'master'
fix(esp_hw_support): increase test rounds for in esp_random() test Closes IDFCI-8229 See merge request espressif/esp-idf!48188
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user