rust/src/libstd
Mazdak Farrokhzad 828a3eef66
Rollup merge of #66092 - niacat:master, r=nagisa
Use KERN_ARND syscall for random numbers on NetBSD, same as FreeBSD.

This system call is present on all supported NetBSD versions and provides an endless stream of non-blocking random data from the kernel's ChaCha20-based CSPRNG. It doesn't require a file like `/dev/urandom` to be opened.

The system call is documented here (under kern.arandom):
https://netbsd.gw.com/cgi-bin/man-cgi?sysctl+7+NetBSD-7.0

And defined here:
https://nxr.netbsd.org/xref/src/sys/sys/sysctl.h#273

The semantics are the same as FreeBSD so reading 256 bytes per call is fine.

Similar change for getrandom crate: rust-random/getrandom#115
2019-11-06 07:03:09 +01:00
..
collections Rollup merge of #65112 - jack-t:type-parens-lint, r=varkor 2019-11-01 11:20:07 -07:00
ffi doc: use new feature gate for c_void type 2019-10-29 13:01:54 +00:00
io Fix parameter name in documentation 2019-10-20 23:13:41 +02:00
net Remove leading :: from paths in doc examples 2019-10-20 21:13:47 +03:00
os redesign of the interface to the unikernel HermitCore 2019-10-06 15:26:14 +00:00
prelude Remove __rust_unstable_column 2019-08-15 22:58:57 +03:00
sync Don't recommend ONCE_INIT in std::sync::Once 2019-10-16 00:06:01 -07:00
sys Rollup merge of #66092 - niacat:master, r=nagisa 2019-11-06 07:03:09 +01:00
sys_common Merge branch 'master' into rusty-hermit 2019-10-20 10:48:58 +02:00
tests Upgrade rand to 0.7 2019-09-06 14:45:28 +02:00
thread Apply clippy::single_match suggestion 2019-10-22 19:23:10 +02:00
alloc.rs Fix intra-doc link resolution failure on re-exporting libstd 2019-05-04 23:48:57 +09:00
ascii.rs Remove licenses 2018-12-25 21:08:33 -07:00
backtrace.rs BacktraceStatus: add Eq impl 2019-10-02 08:17:28 -04:00
build.rs redesign of the interface to the unikernel HermitCore 2019-10-06 15:26:14 +00:00
Cargo.toml Merge branch 'master' into rusty-hermit, resolve conflicts 2019-10-25 09:09:55 +02:00
env.rs A few cosmetic improvements to code & comments in liballoc and libcore 2019-09-06 16:02:25 +01:00
error.rs Fix typos in error.rs 2019-10-13 12:12:46 +02:00
f32.rs Rollup merge of #63698 - Phosphorus15:master, r=nagisa 2019-08-27 08:17:49 +02:00
f64.rs Rollup merge of #63698 - Phosphorus15:master, r=nagisa 2019-08-27 08:17:49 +02:00
fs.rs Auto merge of #65429 - Timmmm:withoptions, r=Mark-Simulacrum 2019-11-02 18:22:32 +00:00
future.rs async/await: improve obligation errors 2019-09-30 23:41:20 +01:00
keyword_docs.rs Adding doc on keyword continue 2019-10-24 21:35:16 -06:00
lib.rs RFC 2008: Stabilization 2019-10-25 09:34:05 +01:00
macros.rs Remove __rust_unstable_column 2019-08-15 22:58:57 +03:00
memchr.rs libstd => 2018 2019-02-28 04:06:15 +09:00
num.rs Reexport IntErrorKind in std 2019-04-23 00:15:43 +02:00
panic.rs Fix typo from #65214 2019-10-21 13:30:43 +01:00
panicking.rs Panicking infra uses &core::panic::Location. 2019-10-27 12:50:58 -07:00
path.rs Prevent unnecessary allocation in PathBuf::set_extension. 2019-10-23 21:21:25 +02:00
primitive_docs.rs Remove unneeded fn main blocks from docs 2019-10-01 11:55:46 +00:00
process.rs Remove leading :: from paths in doc examples 2019-10-20 21:13:47 +03:00
rt.rs remove stray change 2019-10-18 16:52:42 +02:00
time.rs Fix typo on now() comments 2019-10-05 12:23:10 +02:00