@@ -51,7 +51,7 @@ use sp_runtime::traits::{Hash, One, Saturating};
5151///
5252/// Adversaries should not possess many block production slots towards the beginning or
5353/// end of every epoch, but they possess some influence over when they possess more slots.
54- pub struct RandomnessFromTwoEpochsAgo < T > ( sp_std :: marker:: PhantomData < T > ) ;
54+ pub struct RandomnessFromTwoEpochsAgo < T > ( core :: marker:: PhantomData < T > ) ;
5555
5656/// Randomness usable by on-chain code that **does not depend** upon finality and takes
5757/// action based upon on-chain commitments made during the previous epoch.
@@ -79,7 +79,7 @@ pub struct RandomnessFromTwoEpochsAgo<T>(sp_std::marker::PhantomData<T>);
7979/// As an example usage, we determine parachain auctions ending times in Polkadot using
8080/// `RandomnessFromOneEpochAgo` because it reduces bias from `ParentBlockRandomness` and
8181/// does not require the extra finality delay of `RandomnessFromTwoEpochsAgo`.
82- pub struct RandomnessFromOneEpochAgo < T > ( sp_std :: marker:: PhantomData < T > ) ;
82+ pub struct RandomnessFromOneEpochAgo < T > ( core :: marker:: PhantomData < T > ) ;
8383
8484/// Randomness produced semi-freshly with each block, but inherits limitations of
8585/// `RandomnessFromTwoEpochsAgo` from which it derives.
@@ -119,7 +119,7 @@ pub struct RandomnessFromOneEpochAgo<T>(sp_std::marker::PhantomData<T>);
119119/// instead you are using this randomness externally, i.e. after block execution, then
120120/// this randomness will be provided by the "current" block (this stems from the fact that
121121/// we process VRF outputs on block execution finalization, i.e. `on_finalize`).
122- pub struct ParentBlockRandomness < T > ( sp_std :: marker:: PhantomData < T > ) ;
122+ pub struct ParentBlockRandomness < T > ( core :: marker:: PhantomData < T > ) ;
123123
124124/// Randomness produced semi-freshly with each block, but inherits limitations of
125125/// `RandomnessFromTwoEpochsAgo` from which it derives.
@@ -128,7 +128,7 @@ pub struct ParentBlockRandomness<T>(sp_std::marker::PhantomData<T>);
128128#[ deprecated( note = "Should not be relied upon for correctness, \
129129 will not provide fresh randomness for the current block. \
130130 Please use `ParentBlockRandomness` instead.") ]
131- pub struct CurrentBlockRandomness < T > ( sp_std :: marker:: PhantomData < T > ) ;
131+ pub struct CurrentBlockRandomness < T > ( core :: marker:: PhantomData < T > ) ;
132132
133133impl < T : Config > RandomnessT < T :: Hash , BlockNumberFor < T > > for RandomnessFromTwoEpochsAgo < T > {
134134 fn random ( subject : & [ u8 ] ) -> ( T :: Hash , BlockNumberFor < T > ) {
0 commit comments