Skip to content
This repository was archived by the owner on Aug 15, 2026. It is now read-only.
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions c/src/random_math_operations.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion c/tests/test_random_math_operations.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
Loading