Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implement new assignment algorithm and lazy issuance (#68)
* Revert "[ceremonies/#65] generate random meetup indices (#73)" This reverts commit 47282e2. * new assignment, lazy issuance, random locations * [ceremonies/#75] use random coprime for assignment * [ceremonies] fix no_std compilation and `fn find_coprime_below` * [ceremonies] print error in `generate_meetup_assignment_params` * [ceremonies] use checked math operations in `checked_ceil_division`, `assignment_fn` * [ceremonies] extract most math functions to primitives * [ceremonies] move `mod_inv` to math module * [ceremonies] fix randomness in `generate_assignment_function_params` -> introduces failing tests * [ceremonies] remove unnecessary loc_ix >= 0 comparison for u64 type * [ceremonies] fix failing tests by fixing `pick_non_zero_u32` * [ceremonies] minor cleanup * [ceremonies] add tests for `get_greatest_common_denominator` * [primitives/random_number_generator] simplify pick_non_zero_u32 * [ceremonies/math] fix-no std compilation; successfully compiles with the node. * [ceremonies] remove unnecessary result in `generate_all_meetup_assignment_params` * [ceremonies] add test `generate_meetup_assignment_params_is_random` Co-authored-by: Nicolas Jakob <jakobnicolas@gmail.com> Co-authored-by: Christian Langenbacher <clangenb+gh@protonmail.ch>
- Loading branch information