Skip to content
Snippets Groups Projects
Unverified Commit 30ac7733 authored by Artyom Pavlov's avatar Artyom Pavlov Committed by GitHub
Browse files

prepare release v0.1.5 (#47)

parent e992e457
No related branches found
No related tags found
No related merge requests found
......@@ -19,6 +19,10 @@ matrix:
os: osx
install:
- rustup target add aarch64-apple-ios
script:
- cargo test
- cargo test --examples
- cargo build --target aarch64-apple-ios
- rust: beta
env: DESCRIPTION="Linux, beta"
......
......@@ -4,6 +4,18 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [0.1.5] - 2019-06-29
### Fixed
- Use shared `File` instead of shared file descriptor. [#44]
- Workaround for RDRAND hardware bug present on some AMD CPUs. [#43]
### Changed
- Try `getentropy` and then fallback to `/dev/random` on macOS. [#38]
[#38]: https://github.com/rust-random/getrandom/issues/38
[#43]: https://github.com/rust-random/getrandom/pull/43
[#44]: https://github.com/rust-random/getrandom/issues/44
## [0.1.4] - 2019-06-28
### Added
- Add support for `x86_64-unknown-uefi` target by using RDRAND with CPUID
......
[package]
name = "getrandom"
version = "0.1.4"
version = "0.1.5"
edition = "2018"
authors = ["The Rand Project Developers"]
license = "MIT OR Apache-2.0"
......
......@@ -28,7 +28,7 @@ unsafe fn rdrand() -> Result<[u8; WORD_SIZE], Error> {
// See https://github.com/systemd/systemd/issues/11810#issuecomment-489727505
if cfg!(not(target_env = "sgx")) && (el == 0 || el == !0) {
error!("RDRAND returned suspicious value {}, CPU RNG is broken", el);
return Err(Error::UNKNOWN)
return Err(Error::UNKNOWN);
}
return Ok(el.to_ne_bytes());
}
......
......@@ -12,10 +12,7 @@ extern crate std;
use crate::Error;
use core::num::NonZeroU32;
use lazy_static::lazy_static;
use std::{
fs::File,
io::Read,
};
use std::{fs::File, io::Read};
#[cfg(target_os = "redox")]
const FILE_PATH: &str = "rand:";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment