pub fn modulo(bytes: &[u8], n: u64) -> u64
Compute the modulo of bytes interpreted as a big-endian integer.
This function is used to select a random entry from an array when the bytes are a random seed.