pub fn random_chunk(random_hash: &[u8], total_chunks: ChunkIndex) -> ChunkIndexExpand description
A utility function to extract a chunk index from the source of randomness.
ยงPanics
This function panics if total_chunks is 0.
pub fn random_chunk(random_hash: &[u8], total_chunks: ChunkIndex) -> ChunkIndexA utility function to extract a chunk index from the source of randomness.
This function panics if total_chunks is 0.