]> git.proxmox.com Git - rustc.git/blobdiff - src/libstd/rand/mod.rs
Imported Upstream version 1.7.0+dfsg1
[rustc.git] / src / libstd / rand / mod.rs
index 7a4a0f96b3090caba206ab827eede372d3a830c9..21e60420c186adb48a19058884006bcd763f2455 100644 (file)
@@ -47,6 +47,7 @@
 //!     if the entropy pool is very small, such as immediately after first booting.
 //!     Linux 3.17 added the `getrandom(2)` system call which solves the issue: it blocks if entropy
 //!     pool is not initialized yet, but it does not block once initialized.
+//!     `getrandom(2)` was based on `getentropy(2)`, an existing system call in OpenBSD.
 //!     `OsRng` tries to use `getrandom(2)` if available, and use `/dev/urandom` fallback if not.
 //!     If an application does not have `getrandom` and likely to be run soon after first booting,
 //!     or on a system with very few entropy sources, one should consider using `/dev/random` via