referrerpolicy=no-referrer-when-downgrade

Function reduce::generate_random_phragmen_assignment

source ·
pub(crate) fn generate_random_phragmen_assignment(
    voter_count: usize,
    target_count: usize,
    avg_edge_per_voter: usize,
    edge_per_voter_var: usize,
    rng: impl RngCore,
) -> (Vec<StakedAssignment<u64>>, Vec<u64>)