Function modulo

Source
pub fn modulo(bytes: &[u8], n: u64) -> u64
Expand description

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.