Skip to content

Commit de231c8

Browse files
authored
Merge pull request #338 from pitdicker/osrng_extra_check
Try /dev/random before using /dev/urandom
2 parents 43277d6 + 8ab3708 commit de231c8

File tree

2 files changed

+205
-156
lines changed

2 files changed

+205
-156
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ You may also find the [Update Guide](UPDATING.md) useful.
7070
- Add support for CloudABI. (#224)
7171
- Remove support for NaCl. (#225)
7272
- WASM support for `OsRng` via stdweb, behind the `stdweb` feature. (#272, #336)
73+
- Use `getrandom` on more platforms for Linux, and on Android. (#338)
7374
- On systems that do not have a syscall interface, only keep a single file descriptor open for `OsRng`. (#239)
75+
- On Unix, first try a single read from `/dev/random`, then `/dev/urandom`. (#338)
7476
- Better error handling and reporting in `OsRng` (using new error type). (#225)
7577
- `OsRng` now uses non-blocking when available. (#225)
7678
- Add `EntropyRng`, which provides `OsRng`, but has `JitterRng` as a fallback. (#235)

0 commit comments

Comments
 (0)