Skip to content

Commit 30ac773

Browse files
authored
prepare release v0.1.5 (#47)
1 parent e992e45 commit 30ac773

File tree

5 files changed

+19
-6
lines changed

5 files changed

+19
-6
lines changed

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ matrix:
1919
os: osx
2020
install:
2121
- rustup target add aarch64-apple-ios
22+
script:
23+
- cargo test
24+
- cargo test --examples
25+
- cargo build --target aarch64-apple-ios
2226

2327
- rust: beta
2428
env: DESCRIPTION="Linux, beta"

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,18 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [0.1.5] - 2019-06-29
8+
### Fixed
9+
- Use shared `File` instead of shared file descriptor. [#44]
10+
- Workaround for RDRAND hardware bug present on some AMD CPUs. [#43]
11+
12+
### Changed
13+
- Try `getentropy` and then fallback to `/dev/random` on macOS. [#38]
14+
15+
[#38]: https://github.com/rust-random/getrandom/issues/38
16+
[#43]: https://github.com/rust-random/getrandom/pull/43
17+
[#44]: https://github.com/rust-random/getrandom/issues/44
18+
719
## [0.1.4] - 2019-06-28
820
### Added
921
- Add support for `x86_64-unknown-uefi` target by using RDRAND with CPUID

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "getrandom"
3-
version = "0.1.4"
3+
version = "0.1.5"
44
edition = "2018"
55
authors = ["The Rand Project Developers"]
66
license = "MIT OR Apache-2.0"

src/rdrand.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ unsafe fn rdrand() -> Result<[u8; WORD_SIZE], Error> {
2828
// See https://github.com/systemd/systemd/issues/11810#issuecomment-489727505
2929
if cfg!(not(target_env = "sgx")) && (el == 0 || el == !0) {
3030
error!("RDRAND returned suspicious value {}, CPU RNG is broken", el);
31-
return Err(Error::UNKNOWN)
31+
return Err(Error::UNKNOWN);
3232
}
3333
return Ok(el.to_ne_bytes());
3434
}

src/use_file.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@ extern crate std;
1212
use crate::Error;
1313
use core::num::NonZeroU32;
1414
use lazy_static::lazy_static;
15-
use std::{
16-
fs::File,
17-
io::Read,
18-
};
15+
use std::{fs::File, io::Read};
1916

2017
#[cfg(target_os = "redox")]
2118
const FILE_PATH: &str = "rand:";

0 commit comments

Comments
 (0)