diff options
| author | Jubilee <workingjubilee@gmail.com> | 2024-09-23 07:54:43 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-23 07:54:43 -0700 |
| commit | 1d369312e4ab6a0e8fb11f40e1a22a577e420f9f (patch) | |
| tree | 5ff93f0a2c51401f011c28e9a1288670fce331d5 /compiler/rustc_codegen_gcc | |
| parent | c22a4215a0f6fb676d3774d3763d9da1462414f5 (diff) | |
| parent | 3ff09a05c81f2c6b9eed71e6e8cfe0cf2c8d4f51 (diff) | |
| download | rust-1d369312e4ab6a0e8fb11f40e1a22a577e420f9f.tar.gz rust-1d369312e4ab6a0e8fb11f40e1a22a577e420f9f.zip | |
Rollup merge of #129201 - joboet:random_faster_sources, r=joshtriplett
std: implement the `random` feature (alternative version) Implements the ACP rust-lang/libs-team#393. This PR is an alternative version of #129120 that replaces `getentropy` with `CCRandomGenerateBytes` (on macOS) and `arc4random_buf` (other BSDs), since that function is not suited for generating large amounts of data and should only be used to seed other CPRNGs. `CCRandomGenerateBytes`/`arc4random_buf` on the other hand is (on modern platforms) just as secure and uses its own, very strong CPRNG (ChaCha20 on the BSDs, AES on macOS) periodically seeded with `getentropy`.
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions
