Skip to content

unit-test: add consistency test for mlk_poly_rej_uniform_x4/x1 - #1431

Merged
mkannwischer merged 1 commit into
mainfrom
unit-test-x1x4
Jan 6, 2026
Merged

mkannwischer merged 1 commit into
mainfrom
unit-test-x1x4

Conversation

@willieyz

Copy link
Copy Markdown
Contributor

@willieyz
willieyz marked this pull request as ready for review December 24, 2025 11:08
@willieyz
willieyz requested a review from a team as a code owner December 24, 2025 11:08
@willieyz
willieyz marked this pull request as draft December 24, 2025 11:47
@willieyz
willieyz force-pushed the unit-test-x1x4 branch 3 times, most recently from 7a98284 to 3faf90a Compare December 28, 2025 12:16
@mkannwischer mkannwischer self-assigned this Dec 28, 2025
@willieyz
willieyz marked this pull request as ready for review December 30, 2025 03:29
@willieyz willieyz changed the title unit-test: add consistency test for mlk_poly_rej_uniform_x4 and mlk_p… unit-test: add consistency test for mlk_poly_rej_uniform_x4/x1 Jan 2, 2026
@willieyz
willieyz requested a review from mkannwischer January 2, 2026 02:37

@mkannwischer mkannwischer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @willieyz. 3 minor comments.

Comment thread test/src/test_unit.c Outdated
Comment thread test/src/test_unit.c Outdated
Comment thread test/src/test_unit.c Outdated
@willieyz
willieyz force-pushed the unit-test-x1x4 branch 2 times, most recently from a2f669a to b303744 Compare January 2, 2026 10:06
Comment thread test/src/test_unit.c Outdated

@mkannwischer mkannwischer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please correct the grammar in the commit message.

@mkannwischer mkannwischer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please limit your commit subject to at most 72 characters.

Add unit tests that verify mlk_poly_rej_uniform_x4 processing four
different seeds produces the same results as four separate calls to
mlk_poly_rej_uniform with those same individual seeds.

Introduce NUM_RANDOM_TESTS_REJ_UNIFORM constant to prevent test
timeouts on embedded platforms. The poly_rej_uniform operations are
computationally intensive and require reduced iteration counts to stay
within execution limits on resource-constrained targets like
AVR ATmega128RFR2.

Signed-off-by: willieyz <willie.zhao@chelpis.com>

@mkannwischer mkannwischer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @willieyz! LGTM.

@mkannwischer
mkannwischer merged commit 5a3fc59 into main Jan 6, 2026
778 of 779 checks passed
@mkannwischer
mkannwischer deleted the unit-test-x1x4 branch January 6, 2026 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement unit tests for x4/x1 poly_rej_uniform

2 participants