From d29122397b4e4656f1e8d81a56f2f3e1d9702720 Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Tue, 27 Aug 2024 08:41:42 -0700 Subject: [PATCH] docs: remove any mentions of randomness lookback limits They don't exist. --- sdk/src/sys/rand.rs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/sdk/src/sys/rand.rs b/sdk/src/sys/rand.rs index 44dd4802b..5c58227bd 100644 --- a/sdk/src/sys/rand.rs +++ b/sdk/src/sys/rand.rs @@ -11,7 +11,8 @@ use crate::sys::ErrorNumber::*; super::fvm_syscalls! { module = "rand"; - /// Gets 32 bytes of randomness from the ticket chain. + /// Gets 32 bytes of randomness from the ticket chain, + /// there is no lookback limit. /// /// # Arguments /// @@ -19,15 +20,15 @@ super::fvm_syscalls! { /// /// # Errors /// - /// | Error | Reason | - /// |---------------------|-------------------------| - /// | [`LimitExceeded`] | lookback exceeds limit. | - /// | [`IllegalArgument`] | invalid buffer, etc. | + /// | Error | Reason | + /// |---------------------|------------------------| + /// | [`IllegalArgument`] | epoch is in the future | pub fn get_chain_randomness( epoch: i64, ) -> Result<[u8; RANDOMNESS_LENGTH]>; - /// Gets 32 bytes of randomness from the beacon system (currently Drand). + /// Gets 32 bytes of randomness from the beacon system + /// (currently Drand), there is no lookback limit. /// /// # Arguments /// @@ -35,10 +36,9 @@ super::fvm_syscalls! { /// /// # Errors /// - /// | Error | Reason | - /// |---------------------|-------------------------| - /// | [`LimitExceeded`] | lookback exceeds limit. | - /// | [`IllegalArgument`] | invalid buffer, etc. | + /// | Error | Reason | + /// |---------------------|------------------------| + /// | [`IllegalArgument`] | epoch is in the future | pub fn get_beacon_randomness( epoch: i64, ) -> Result<[u8; RANDOMNESS_LENGTH]>;