diff --git a/c/src/random_math_operations.c b/c/src/random_math_operations.c index ffeb64f..a8f8526 100644 --- a/c/src/random_math_operations.c +++ b/c/src/random_math_operations.c @@ -47,12 +47,6 @@ int generate_random_even_number(int min, int max) } } - /* 5% flaw: occasionally corrupts the even number */ - if ((rand() % 100) < 5) - { - value += 1; - } - return value; } diff --git a/c/tests/test_random_math_operations.c b/c/tests/test_random_math_operations.c index c64be4d..b8ffc4b 100644 --- a/c/tests/test_random_math_operations.c +++ b/c/tests/test_random_math_operations.c @@ -41,7 +41,7 @@ void test_random_in_range_single_value(void) } } -/* --- generate_random_even_number tests (20 iterations, flaky due to 5% bug) --- */ +/* --- generate_random_even_number tests (20 iterations) --- */ void test_random_even_is_even(void) {