Skip to content

Commit 2135712

Browse files
committed
rollup merge of #20086: shepmaster/random-typo
2 parents 97f605e + bffd802 commit 2135712

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd/rand/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
//! so the "quality" of `/dev/random` is not better than `/dev/urandom` in most cases.
4646
//! However, this means that `/dev/urandom` can yield somewhat predictable randomness
4747
//! if the entropy pool is very small, such as immediately after first booting.
48-
//! Linux 3,17 added `getrandom(2)` system call which solves the issue: it blocks if entropy
48+
//! Linux 3.17 added the `getrandom(2)` system call which solves the issue: it blocks if entropy
4949
//! pool is not initialized yet, but it does not block once initialized.
5050
//! `OsRng` tries to use `getrandom(2)` if available, and use `/dev/urandom` fallback if not.
5151
//! If an application does not have `getrandom` and likely to be run soon after first booting,
@@ -126,7 +126,7 @@
126126
//! > Is it to your advantage to switch your choice?
127127
//!
128128
//! The rather unintuitive answer is that you will have a 2/3 chance of winning if
129-
//! you switch and a 1/3 chance of winning of you don't, so it's better to switch.
129+
//! you switch and a 1/3 chance of winning if you don't, so it's better to switch.
130130
//!
131131
//! This program will simulate the game show and with large enough simulation steps
132132
//! it will indeed confirm that it is better to switch.

0 commit comments

Comments
 (0)