pub trait HasEntropy {
    fn entropy(&self) -> Entropy;
}
Expand description

An entropy source.

Get the entropy value for the current component, whether that is a word styler, a phrase builder or something else.

TODO: properly describe what entropy is here.

Required Methods

Get the entropy value for this whole component. The returned entropy value may be accumulated from various internal entropy sources.

See the documentation on Entropy for details on what entropy is and how it should be calculated. If this component does not have any effect on passphrase entropy 1 should be returned.

Implementors