mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 02:17:58 +00:00
impl Randomness trait for Babe and remove unused RandomBeacon trait (#4886)
* impl Randomness trait for Babe and remove unused RandomBeacon trait * bump runtime version
This commit is contained in:
committed by
GitHub
parent
0d45d12e3f
commit
ea69238d03
@@ -767,7 +767,10 @@ pub trait Randomness<Output> {
|
||||
/// Get a "random" value
|
||||
///
|
||||
/// Being a deterministic blockchain, real randomness is difficult to come by. This gives you
|
||||
/// something that approximates it. `subject` is a context identifier and allows you to get a
|
||||
/// something that approximates it. At best, this will be randomness which was
|
||||
/// hard to predict a long time ago, but that has become easy to predict recently.
|
||||
///
|
||||
/// `subject` is a context identifier and allows you to get a
|
||||
/// different result to other callers of this function; use it like
|
||||
/// `random(&b"my context"[..])`.
|
||||
fn random(subject: &[u8]) -> Output;
|
||||
|
||||
Reference in New Issue
Block a user