The Randomness Collective Flip module provides a random
function that generates low-influence random values based on the block hashes from the previous
81
blocks. Low-influence randomness can be useful when defending against relatively weak
adversaries. Using this pallet as a randomness source is advisable primarily in low-security
situations like testing.
See the Module
struct for details of publicly available functions.
Import the Randomness Collective Flip module and derive your module's configuration trait from the system trait.
```rust use framesupport::{declmodule, dispatch, traits::Randomness};
pub trait Trait: frame_system::Trait {}
declmodule! {
pub struct Module
License: Apache-2.0