Closed
Description
For discussion of this section of the RFC.
It has been suggested that it should be possible to override the implementation of NewSeeded
(see also using an fn
instead).
A second point relevant to the NewSeeded
trait is allowing seeding via a back-up entropy source, first suggested at the end of this comment, with another note at the end of this comment.
Possibly we should have something like the following; this still doesn't address the question of allowing other implementations (regarding which I still don't understand the need for one):
pub trait NewSeeded: Sized {
fn try_new() -> Result<Self, Error>;
fn new_with_fallback() -> Self;
}