rust/src/libstd
Doug Goldstein f875daca54 rand: don't block before random pool is initialized
If we attempt a read with getrandom() on Linux the syscall can block
before the random pool is initialized unless the GRND_NONBLOCK flag is
passed. This flag causes getrandom() to instead return EAGAIN while the
pool is uninitialized. To avoid downstream users of crate or std
functionality that have no ability to avoid this blocking behavior this
change causes Rust to read bytes from /dev/urandom while getrandom()
would block and once getrandom() is available to use that. Fixes #32953.

Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
2016-04-19 06:24:34 -05:00
..
collections std: Stabilize APIs for the 1.9 release 2016-04-11 08:57:53 -07:00
ffi std: Stabilize APIs for the 1.9 release 2016-04-11 08:57:53 -07:00
io Rollup merge of #32855 - troplin:take-bufread-fix, r=alexcrichton 2016-04-14 14:49:09 -04:00
net std: Stabilize APIs for the 1.9 release 2016-04-11 08:57:53 -07:00
num Fix f32::sin_cos and f64::sin_cos examples 2016-04-16 11:42:37 +05:00
os Fix libstd on DragonFly 2016-04-07 11:39:27 +02:00
prelude End stdlib module summaries with a full stop. 2016-03-04 17:37:11 -05:00
rand std: restructure rand os code into sys modules 2016-02-17 16:21:32 -08:00
sync Add a comment about locking a Mutex multiple times 2016-04-17 21:30:52 +02:00
sys rand: don't block before random pool is initialized 2016-04-19 06:24:34 -05:00
thread Fix unsound behaviour with null characters in thread names (issue #32475) 2016-03-25 06:14:03 +01:00
time Inline Duration constructors and accessors 2016-04-02 20:42:42 -07:00
ascii.rs std: Stabilize APIs for the 1.9 release 2016-04-11 08:57:53 -07:00
build.rs std: Link to gcc_s on NetBSD 2016-03-21 11:23:44 -07:00
Cargo.toml rustbuild: Sync some Cargo.toml/lib.rs dependencies 2016-02-21 09:49:13 -08:00
env.rs Rollup merge of #32691 - frewsxcv:patch-28, r=alexcrichton 2016-04-06 12:12:08 -07:00
error.rs std: Stabilize APIs for the 1.9 release 2016-04-11 08:57:53 -07:00
fs.rs Auto merge of #31963 - barosl:rename-doc, r=alexcrichton 2016-04-12 10:12:55 -07:00
lib.rs std: Stabilize APIs for the 1.9 release 2016-04-11 08:57:53 -07:00
macros.rs mk: Distribute fewer TARGET_CRATES 2016-03-07 13:05:12 -08:00
memchr.rs Minor spelling fixes 2016-02-09 11:52:39 -05:00
panic.rs Fix a typo and add a missing word 2016-04-13 19:35:21 +02:00
panicking.rs Make set_hook take a Box<Fn> 2016-03-15 20:51:48 -07:00
path.rs Fix Windows UNC paths in std::path docs 2016-04-10 14:51:23 -07:00
primitive_docs.rs Add Copy to the traits that are automatically implemented for tuples 2016-04-06 20:10:33 +02:00
process.rs Auto merge of #32338 - lukaspustina:doc-std-process, r=alexcrichton 2016-04-15 12:41:25 -07:00
rt.rs std: Stabilize APIs for the 1.9 release 2016-04-11 08:57:53 -07:00
rtdeps.rs bootstrap: Add directives to not double-link libs 2016-02-11 11:12:32 -08:00