Skip to content

Commit 525faea

Browse files
authored
docs: remove any mentions of randomness lookback limits (#2034)
They don't exist.
1 parent 7f8986c commit 525faea

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

sdk/src/sys/rand.rs

+10-10
Original file line numberDiff line numberDiff line change
@@ -11,34 +11,34 @@ use crate::sys::ErrorNumber::*;
1111
super::fvm_syscalls! {
1212
module = "rand";
1313

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.
1516
///
1617
/// # Arguments
1718
///
1819
/// - `epoch` is the epoch to pull the randomness from.
1920
///
2021
/// # Errors
2122
///
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 |
2626
pub fn get_chain_randomness(
2727
epoch: i64,
2828
) -> Result<[u8; RANDOMNESS_LENGTH]>;
2929

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.
3132
///
3233
/// # Arguments
3334
///
3435
/// - `epoch` is the epoch to pull the randomness from.
3536
///
3637
/// # Errors
3738
///
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 |
4242
pub fn get_beacon_randomness(
4343
epoch: i64,
4444
) -> Result<[u8; RANDOMNESS_LENGTH]>;

0 commit comments

Comments
 (0)