Skip to content

Commit 3001e91

Browse files
authored
Merge pull request #672 from dhardy/master
Prepare 0.6.2 release + rand_os and rand_xoshiro initial releases + rand_chacha and rand_xorshift patchs
2 parents 158c3e9 + 3b7cf7a commit 3001e91

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+310
-30
lines changed

CHANGELOG.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,20 @@ A [separate changelog is kept for rand_core](rand_core/CHANGELOG.md).
99
You may also find the [Upgrade Guide](https://rust-random.github.io/book/update.html) useful.
1010

1111

12-
## [0.6.2] - Unreleased
13-
- Disable `i128` and `u128` if the `target_os` is `emscripten`.
12+
## [0.6.2] - 2019-01-04
13+
### Additions
14+
- Add `Default` for `ThreadRng` (#657)
15+
- Move `rngs::OsRng` to `rand_os` sub-crate; clean up code; use as dependency (#643) ##BLOCKER##
16+
- Add `rand_xoshiro` sub-crate, plus benchmarks (#642, #668)
17+
18+
### Fixes
19+
- Fix bias in `UniformInt::sample_single` (#662)
20+
- Use `autocfg` instead of `rustc_version` for rustc version detection (#664)
21+
- Disable `i128` and `u128` if the `target_os` is `emscripten` (#671: work-around Emscripten limitation)
22+
- CI fixes (#660, #671)
23+
24+
### Optimisations
25+
- Optimise memory usage of `UnitCircle` and `UnitSphereSurface` distributions (no PR)
1426

1527
## [0.6.1] - 2018-11-22
1628
- Support sampling `Duration` also for `no_std` (only since Rust 1.25) (#649)

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rand"
3-
version = "0.6.1"
3+
version = "0.6.2"
44
authors = ["The Rand Project Developers", "The Rust Project Developers"]
55
license = "MIT/Apache-2.0"
66
readme = "README.md"

rand_chacha/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,9 @@ 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.1] - 2019-01-04
8+
- Disable `i128` and `u128` if the `target_os` is `emscripten` (#671: work-around Emscripten limitation)
9+
- Update readme and doc links
10+
711
## [0.1.0] - 2018-10-17
812
- Pulled out of the Rand crate

rand_chacha/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rand_chacha"
3-
version = "0.1.0"
3+
version = "0.1.1"
44
authors = ["The Rand Project Developers", "The Rust Project Developers"]
55
license = "MIT/Apache-2.0"
66
readme = "README.md"

rand_os/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ 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.0] - 2018-11-14
7+
## [0.1.0] - 2019-01-04
88
Initial release.

rand_os/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rand_os"
3-
version = "0.1.0" # NB: When modifying, also modify html_root_url in lib.rs
3+
version = "0.1.0"
44
authors = ["The Rand Project Developers"]
55
license = "MIT/Apache-2.0"
66
readme = "README.md"

rand_os/README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
[![Build Status](https://travis-ci.org/rust-random/rand.svg?branch=master)](https://travis-ci.org/rust-random/rand)
44
[![Build Status](https://ci.appveyor.com/api/projects/status/github/rust-random/rand?svg=true)](https://ci.appveyor.com/project/rust-random/rand)
55
[![Latest version](https://img.shields.io/crates/v/rand_os.svg)](https://crates.io/crates/rand_os)
6-
[![Documentation](https://docs.rs/rand_os/badge.svg)](https://docs.rs/rand_os)
7-
[![Minimum rustc version](https://img.shields.io/badge/rustc-1.22+-yellow.svg)](https://github.com/rust-random/rand#rust-version-requirements)
8-
[![License](https://img.shields.io/crates/l/rand_os.svg)](https://github.com/rust-random/rand/tree/master/rand_os#license)
6+
[![Book](https://img.shields.io/badge/book-master-yellow.svg)](https://rust-random.github.io/book/)
7+
[![API](https://img.shields.io/badge/api-master-yellow.svg)](https://rust-random.github.io/rand/rand_os)
8+
[![API](https://docs.rs/rand_os/badge.svg)](https://docs.rs/rand_os)
9+
[![Minimum rustc version](https://img.shields.io/badge/rustc-1.22+-lightgray.svg)](https://github.com/rust-random/rand#rust-version-requirements)
910

1011
A random number generator that retrieves randomness straight from the
1112
operating system.
@@ -17,11 +18,11 @@ This crate aims to support all of Rust's `std` platforms with a system-provided
1718
entropy source. Unlike other Rand crates, this crate does not support `no_std`
1819
(handling this gracefully is a current discussion topic).
1920

20-
Documentation:
21-
[master branch](https://rust-random.github.io/rand/rand_os/index.html),
22-
[by release](https://docs.rs/rand_os)
21+
Links:
2322

24-
[Changelog](CHANGELOG.md)
23+
- [API documentation (master)](https://rust-random.github.io/rand/rand_os)
24+
- [API documentation (docs.rs)](https://docs.rs/rand_os)
25+
- [Changelog](CHANGELOG.md)
2526

2627
## License
2728

rand_os/src/cloudabi.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
// Copyright 2018 Developers of the Rand project.
2+
//
3+
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
4+
// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
5+
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
6+
// option. This file may not be copied, modified, or distributed
7+
// except according to those terms.
8+
9+
//! Implementation for CloudABI
10+
111
extern crate cloudabi;
212

313
use std::io;

rand_os/src/dragonfly_haiku_emscripten.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
// Copyright 2018 Developers of the Rand project.
2+
//
3+
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
4+
// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
5+
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
6+
// option. This file may not be copied, modified, or distributed
7+
// except according to those terms.
8+
9+
//! Implementation for DragonFly / Haiku / Emscripten
10+
111
use rand_core::Error;
212
use super::random_device;
313
use super::OsRngImpl;

rand_os/src/freebsd.rs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
// Copyright 2018 Developers of the Rand project.
2+
//
3+
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
4+
// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
5+
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
6+
// option. This file may not be copied, modified, or distributed
7+
// except according to those terms.
8+
9+
//! Implementation for FreeBSD
10+
111
extern crate libc;
212

313
use rand_core::{Error, ErrorKind};
@@ -32,4 +42,4 @@ impl OsRngImpl for OsRng {
3242
fn max_chunk_size(&self) -> usize { 256 }
3343

3444
fn method_str(&self) -> &'static str { "kern.arandom" }
35-
}
45+
}

0 commit comments

Comments
 (0)