Type Alias pallet_insecure_randomness_collective_flip::pallet::RandomMaterial
source · pub type RandomMaterial<T: Config> = StorageValue<_GeneratedPrefixForStorageRandomMaterial<T>, BoundedVec<T::Hash, ConstU32<RANDOM_MATERIAL_LEN>>, ValueQuery>;
Expand description
Series of block headers from the last 81 blocks that acts as random seed material. This
is arranged as a ring buffer with block_number % 81
being the index into the Vec
of
the oldest hash.
Storage type is StorageValue
with value type BoundedVec < T :: Hash, ConstU32 < RANDOM_MATERIAL_LEN > >
.
Aliased Type§
struct RandomMaterial<T: Config>(/* private fields */);