Commit 5a3fc59
unit-test: add consistency test for rej_uniform and rej_uniform_x4
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 <[email protected]>1 parent d213ca8 commit 5a3fc59
1 file changed
+56
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
23 | 32 | | |
24 | 33 | | |
25 | 34 | | |
| |||
669 | 678 | | |
670 | 679 | | |
671 | 680 | | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
672 | 724 | | |
673 | 725 | | |
674 | 726 | | |
| |||
690 | 742 | | |
691 | 743 | | |
692 | 744 | | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
693 | 749 | | |
694 | 750 | | |
0 commit comments