Skip to content

Commit 9e898ea

Browse files
committed
Use new forums link
Update other platforms table Fix typo
1 parent d5c0b0f commit 9e898ea

File tree

1 file changed

+6
-18
lines changed

1 file changed

+6
-18
lines changed

proposals/nnnn-random-unification.md

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
This proposal's main focus is to create a unified random API, and a secure random API for all platforms.
1212

13-
*This idea has been floating around swift-evolution for a while now, but this is the thread that started this proposal: https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20170904/039605.html*
13+
*This idea has been floating around swift-evolution for a while now, but this is the thread that started this proposal: https://forums.swift.org/t/proposal-random-unification/6626*
1414

1515
## Motivation
1616

@@ -93,29 +93,17 @@ To kick this off, we will be discussing the rngs that each operating system will
9393

9494
#### Linux Platform
9595

96-
We require that the kernel version be >= 3.17 as this was the release that introduced the `getrandom(2)` system call. We also require that glibc be >= 2.25 because this released exposed the `<sys/random.h>` header.
96+
We require that the kernel version be >= 3.17 as this was the release that introduced the `getrandom(2)` system call. We also require that glibc be >= 2.25 because this release exposed the `<sys/random.h>` header.
9797

9898
| Kernel Version < 3.17 && Glibc Version < 2.25 | Kernel Version >= 3.17 && Glibc Version >= 2.25 |
9999
|:---------------------------------------------:|:-----------------------------------------------:|
100100
| Read from `/dev/urandom` | Use `getrandom(2)` |
101101

102-
#### Android (Bionic) and Cygwin
102+
#### Other Platforms
103103

104-
| Bionic and Cygwin |
105-
|:------------------:|
106-
| Use `getrandom(2)` |
107-
108-
#### Fuchsia
109-
110-
| Fuchsia |
111-
|:-------------------:|
112-
| Use `getentropy(2)` |
113-
114-
#### Windows
115-
116-
| Windows |
117-
|:----------------------:|
118-
| Use `BCryptoGenRandom` |
104+
| Android (Bionic) and Cygwin | Fuchsia | Windows |
105+
|:---------------------------:|:-------------------:|:----------------------:|
106+
| Use `getrandom(2)` | Use `getentropy(2)` | Use `BCryptoGenRandom` |
119107

120108
### Random API
121109

0 commit comments

Comments
 (0)