Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
getrandom
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
felixmoebius
getrandom
Commits
b9299988
Commit
b9299988
authored
4 years ago
by
Joe Richey
Committed by
Joseph Richey
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
docs: add target triple to docs table
Signed-off-by:
Joe Richey
<
joerichey@google.com
>
parent
e0c155e2
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/lib.rs
+22
-22
22 additions, 22 deletions
src/lib.rs
with
22 additions
and
22 deletions
src/lib.rs
+
22
−
22
View file @
b9299988
...
...
@@ -10,28 +10,28 @@
//!
//! # Supported targets
//!
//! | Target | Implementation
//! |
-
-----------------
|-------------------------
--------------------------------
//! | Linux, Android | [`getrandom`][1] system call if available, otherwise [`/dev/urandom`][2] after successfully polling `/dev/random`
//! | Windows | [`RtlGenRandom`][3]
//! | [Windows
UWP][22]| [`BCryptGenRandom`][23]
//! | macOS | [`getentropy()`][19] if available, otherwise [`/dev/random`][20] (identical to `/dev/urandom`)
//! | iOS | [`SecRandomCopyBytes`][4]
//! | FreeBSD | [`getrandom()`][21] if available, otherwise [`kern.arandom`][5]
//! | OpenBSD | [`getentropy`][6]
//! | NetBSD | [`kern.arandom`][7]
//! | Dragonfly
BSD | [`/dev/random`][8]
//! | Solaris, illumos | [`getrandom`][9]
system call
if available, otherwise [`/dev/random`][10]
//! | Fuchsia
OS | [`cprng_draw`][11]
//! | Redox | [`rand:`][12]
//! | CloudABI | [`cloudabi_sys_random_get`][13]
//! | Haiku | `/dev/random` (identical to `/dev/urandom`)
//! | SGX | [RDRAND][18]
//! | VxWorks | `randABytes` after checking entropy pool initialization with `randSecure`
//! | Emscripten | `/dev/random` (identical to `/dev/urandom`)
//! | WASI | [`__wasi_random_get`][17]
//! | Web
Browser | [`Crypto.getRandomValues()`][14], see [WebAssembly support][16]
//! | Node.js | [`crypto.randomBytes`][15], see [WebAssembly support][16]
//! | Target
| Target Triple
| Implementation
//! |
-----------------
|
------------------
|
--------------
//! | Linux, Android
| `*‑linux‑*`
| [`getrandom`][1] system call if available, otherwise [`/dev/urandom`][2] after successfully polling `/dev/random`
|
//! | Windows
| `*‑pc‑windows‑*`
| [`RtlGenRandom`][3]
|
//! | [Windows
UWP][22]
| `*‑uwp‑windows‑*`
| [`BCryptGenRandom`][23]
|
//! | macOS
| `*‑apple‑darwin`
| [`getentropy()`][19] if available, otherwise [`/dev/random`][20] (identical to `/dev/urandom`)
//! | iOS
| `*‑apple‑ios`
| [`SecRandomCopyBytes`][4]
//! | FreeBSD
| `*‑freebsd`
| [`getrandom()`][21] if available, otherwise [`kern.arandom`][5]
//! | OpenBSD
| `*‑openbsd`
| [`getentropy`][6]
//! | NetBSD
| `*‑netbsd`
| [`kern.arandom`][7]
//! | Dragonfly
BSD
| `*‑dragonfly`
| [`/dev/random`][8]
//! | Solaris, illumos
| `*‑solaris`, `*‑illumos`
| [`getrandom
()
`][9] if available, otherwise [`/dev/random`][10]
//! | Fuchsia
OS
| `*‑fuchsia`
| [`cprng_draw`][11]
//! | Redox
| `*‑cloudabi`
| [`rand:`][12]
//! | CloudABI
| `*‑redox`
| [`cloudabi_sys_random_get`][13]
//! | Haiku
| `*‑haiku`
| `/dev/random` (identical to `/dev/urandom`)
//! | SGX
| `x86_64‑*‑sgx`
| [RDRAND][18]
//! | VxWorks
| `*‑wrs‑vxworks‑*`
| `randABytes` after checking entropy pool initialization with `randSecure`
//! | Emscripten
| `*‑emscripten`
| `/dev/random` (identical to `/dev/urandom`)
//! | WASI
| `wasm32‑wasi`
| [`__wasi_random_get`][17]
//! | Web
Browser
| `wasm32‑*‑unknown`
| [`Crypto.getRandomValues()`][14], see [WebAssembly support][16]
//! | Node.js
| `wasm32‑*‑unknown`
| [`crypto.randomBytes`][15], see [WebAssembly support][16]
//!
//! There is no blanket implementation on `unix` targets that reads from
//! `/dev/urandom`. This ensures all supported targets are using the recommended
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment