about summary refs log tree commit diff
path: root/library/std/src/sys/random/unix_legacy.rs
diff options
context:
space:
mode:
authorjoboet <jonasboettiger@icloud.com>2024-08-17 16:54:01 +0200
committerjoboet <jonasboettiger@icloud.com>2024-09-23 10:36:16 +0200
commitb9d47cfa9b8f0805bfab2c254a02e598a906f102 (patch)
treee4c681065c6a064adba9ba0d784db8b59a8ad182 /library/std/src/sys/random/unix_legacy.rs
parent5c1c72572479afe98734d5f78fa862abe662c41a (diff)
downloadrust-b9d47cfa9b8f0805bfab2c254a02e598a906f102.tar.gz
rust-b9d47cfa9b8f0805bfab2c254a02e598a906f102.zip
std: switch to faster random sources on macOS and most BSDs
Diffstat (limited to 'library/std/src/sys/random/unix_legacy.rs')
-rw-r--r--library/std/src/sys/random/unix_legacy.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/sys/random/unix_legacy.rs b/library/std/src/sys/random/unix_legacy.rs
index dd6be43c173..587068b0d66 100644
--- a/library/std/src/sys/random/unix_legacy.rs
+++ b/library/std/src/sys/random/unix_legacy.rs
@@ -3,8 +3,8 @@
 //! Before `getentropy` was standardized in 2024, UNIX didn't have a standardized
 //! way of getting random data, so systems just followed the precedent set by
 //! Linux and exposed random devices at `/dev/random` and `/dev/urandom`. Thus,
-//! for the few systems that do not support `getentropy` yet, we just read from
-//! the file.
+//! for the few systems that support neither `arc4random_buf` nor `getentropy`
+//! yet, we just read from the file.
 
 use crate::fs::File;
 use crate::io::Read;