File tree 1 file changed +2
-2
lines changed 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 45
45
//! so the "quality" of `/dev/random` is not better than `/dev/urandom` in most cases.
46
46
//! However, this means that `/dev/urandom` can yield somewhat predictable randomness
47
47
//! 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
49
49
//! pool is not initialized yet, but it does not block once initialized.
50
50
//! `OsRng` tries to use `getrandom(2)` if available, and use `/dev/urandom` fallback if not.
51
51
//! If an application does not have `getrandom` and likely to be run soon after first booting,
126
126
//! > Is it to your advantage to switch your choice?
127
127
//!
128
128
//! 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.
130
130
//!
131
131
//! This program will simulate the game show and with large enough simulation steps
132
132
//! it will indeed confirm that it is better to switch.
You can’t perform that action at this time.
0 commit comments