@@ -11,34 +11,34 @@ use crate::sys::ErrorNumber::*;
11
11
super :: fvm_syscalls! {
12
12
module = "rand" ;
13
13
14
- /// Gets 32 bytes of randomness from the ticket chain.
14
+ /// Gets 32 bytes of randomness from the ticket chain,
15
+ /// there is no lookback limit.
15
16
///
16
17
/// # Arguments
17
18
///
18
19
/// - `epoch` is the epoch to pull the randomness from.
19
20
///
20
21
/// # Errors
21
22
///
22
- /// | Error | Reason |
23
- /// |---------------------|-------------------------|
24
- /// | [`LimitExceeded`] | lookback exceeds limit. |
25
- /// | [`IllegalArgument`] | invalid buffer, etc. |
23
+ /// | Error | Reason |
24
+ /// |---------------------|------------------------|
25
+ /// | [`IllegalArgument`] | epoch is in the future |
26
26
pub fn get_chain_randomness(
27
27
epoch: i64 ,
28
28
) -> Result <[ u8 ; RANDOMNESS_LENGTH ] >;
29
29
30
- /// Gets 32 bytes of randomness from the beacon system (currently Drand).
30
+ /// Gets 32 bytes of randomness from the beacon system
31
+ /// (currently Drand), there is no lookback limit.
31
32
///
32
33
/// # Arguments
33
34
///
34
35
/// - `epoch` is the epoch to pull the randomness from.
35
36
///
36
37
/// # Errors
37
38
///
38
- /// | Error | Reason |
39
- /// |---------------------|-------------------------|
40
- /// | [`LimitExceeded`] | lookback exceeds limit. |
41
- /// | [`IllegalArgument`] | invalid buffer, etc. |
39
+ /// | Error | Reason |
40
+ /// |---------------------|------------------------|
41
+ /// | [`IllegalArgument`] | epoch is in the future |
42
42
pub fn get_beacon_randomness(
43
43
epoch: i64 ,
44
44
) -> Result <[ u8 ; RANDOMNESS_LENGTH ] >;
0 commit comments