pub struct BiogasPoll {
biogas: usize,
}Expand description
一个简单的伪熵池实现。
Fields§
§biogas: usizeTrait Implementations§
Source§impl EntropyPool for BiogasPoll
impl EntropyPool for BiogasPoll
Source§fn try_fill(&mut self, dest: &mut [u8]) -> Result<usize, EntropyError>
fn try_fill(&mut self, dest: &mut [u8]) -> Result<usize, EntropyError>
尝试从熵池中提取随机字节来填充目标缓冲区。 Read more
Source§fn add_entropy(&mut self, _data: &[u8], _entropy_bits: usize)
fn add_entropy(&mut self, _data: &[u8], _entropy_bits: usize)
向熵池注入新的原始熵数据。 Read more
Source§fn get_entropy_count(&self) -> usize
fn get_entropy_count(&self) -> usize
获取当前估计的熵池中高品质熵的位数。 Read more