pub fn leader_index(seed: &[u8], participants: usize) -> usize
The leader for a given seed is determined by the modulo of the seed with the number of participants.