Function sp_io::offchain::random_seed[][src]

pub fn random_seed() -> [u8; 32]

Returns a random seed.

This is a truly random, non-deterministic seed generated by host environment. Obviously fine in the off-chain worker context.