forest-filecoin 0.33.7

Rust Filecoin implementation.
Documentation
1
2
3
4
5
6
7
8
9
10
// Copyright 2019-2026 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0, MIT

use super::clock::ChainEpoch;

#[auto_impl::auto_impl(&, Arc, Box)]
pub trait Rand {
    fn get_chain_randomness(&self, round: ChainEpoch) -> anyhow::Result<[u8; 32]>;
    fn get_beacon_randomness(&self, round: ChainEpoch) -> anyhow::Result<[u8; 32]>;
}