Function ink_env::test::set_block_entropy[][src]

pub fn set_block_entropy<T>(entropy: T::Hash) -> Result<()> where
    T: Environment

Set the entropy hash of the current block.

Note

This allows to control what random returns.