Skip to content

Commit

Permalink
Merge pull request #484 from pitdicker/osrng_improvements
Browse files Browse the repository at this point in the history
Several OsRng improvements
  • Loading branch information
pitdicker authored Jun 1, 2018
2 parents 4fd39ba + a87c65e commit 3b0a884
Show file tree
Hide file tree
Showing 3 changed files with 689 additions and 341 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,19 @@ A [separate changelog is kept for rand_core](rand_core/CHANGELOG.md).
You may also find the [Update Guide](UPDATING.md) useful.


## [0.5.1] - Unreleased

### Platform support and `OsRng`
- Remove blanket Unix implementation. (#484)
- Remove Wasm unimplemented stub. (#484)
- Dragonfly BSD: read from `/dev/random`. (#484)
- Bitrig: use `getentropy` like OpenBSD. (#484)
- Solaris: (untested) use `getrandom` if available, otherwise `/dev/random`. (#484)
- Emscripten, `stdweb`: split the read up in chunks. (#484)
- Emscripten, Haiku: don't do an extra blocking read from `/dev/random`. (#484)
- Linux, NetBSD, Solaris: read in blocking mode on first use in `fill_bytes`. (#484)
- Fuchsia, CloudABI: fix compilation (broken in Rand 0.5). (#484)

## [0.5.0] - 2018-05-21

### Crate features and organisation
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ optional features are available:
- `log` enables some logging via the `log` crate.
- `nightly` enables all unstable features (`i128_support`).
- `serde1` enables serialization for some types, via Serde version 1.
- `stdweb` enables support for `OsRng` on WASM via stdweb.
- `stdweb` enables support for `OsRng` on `wasm-unknown-unknown` via `stdweb`
combined with `cargo-web`.

`no_std` mode is activated by setting `default-features = false`; this removes
functionality depending on `std`:
Expand Down
Loading

0 comments on commit 3b0a884

Please sign in to comment.