pub fn maybe_generate_seed(seed_opt: Option<[u8; 32]>) -> [u8; 32]
Use the provided seed, or generate a random one