-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integration into std #21
Comments
I think it'd be nice to have something that "Isn't that what the // If this seems too hard to stabilize, feature gate it?
#[feature(global_rng)]
#[global_rng]
pub fn getrandom_inner(dest: &mut [u8]) -> Result<(), Error> {
[...]
} The idea being that embedded packages can plug in a proprietary global RNG. I'd love to use |
If On the other hand, if this were integrated into the standard library, it would need to be included in (Note: in both cases, another crate implementing some kind of entropy pool may be needed to implement |
IIUC with inclusion into I think it will be reasonable to first start with #4 and move with |
@newpavlov yeah, something to the effect of a lang item was exactly what I was thinking, but I'm not really aware of the difficulty involved in adding a new one, and I know a lot of people think there are too many already |
Closing in favor of rust-lang/rust#62079. |
It has been proposed to include roughly this code into the
std
lib. This is an issue to summarise the proposal and track future development.Draft RFC: https://github.com/dhardy/rfcs/blob/system-random/text/0000-system-random.md
Discussions:
OsRng
crate? (or optional PRNG dependencies) rand#648The text was updated successfully, but these errors were encountered: