Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update paths due to relocation #587

Merged
merged 1 commit into from
Aug 14, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.5.5" # NB: When modifying, also modify html_root_url in lib.rs
authors = ["The Rust Project Developers"]
license = "MIT/Apache-2.0"
readme = "README.md"
repository = "https://github.com/rust-lang-nursery/rand"
repository = "https://github.com/rust-random/rand"
documentation = "https://docs.rs/rand"
homepage = "https://crates.io/crates/rand"
description = """
Expand All @@ -15,8 +15,8 @@ categories = ["algorithms", "no-std"]
build = "build.rs"

[badges]
travis-ci = { repository = "rust-lang-nursery/rand" }
appveyor = { repository = "alexcrichton/rand" }
travis-ci = { repository = "rust-random/rand" }
appveyor = { repository = "dhardy/rand" }

[features]
default = ["std" ] # without "std" rand uses libcore
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Rand

[![Build Status](https://travis-ci.org/rust-lang-nursery/rand.svg?branch=master)](https://travis-ci.org/rust-lang-nursery/rand)
[![Build Status](https://ci.appveyor.com/api/projects/status/github/rust-lang-nursery/rand?svg=true)](https://ci.appveyor.com/project/alexcrichton/rand)
[![Build Status](https://travis-ci.org/rust-random/rand.svg?branch=master)](https://travis-ci.org/rust-random/rand)
[![Build Status](https://ci.appveyor.com/api/projects/status/github/rust-random/rand?svg=true)](https://ci.appveyor.com/project/dhardy/rand)
[![Latest version](https://img.shields.io/crates/v/rand.svg)](https://crates.io/crates/rand)
[![Documentation](https://docs.rs/rand/badge.svg)](https://docs.rs/rand)
[![Minimum rustc version](https://img.shields.io/badge/rustc-1.22+-yellow.svg)](https://github.com/rust-lang-nursery/rand#rust-version-requirements)
[![License](https://img.shields.io/crates/l/rand.svg)](https://github.com/rust-lang-nursery/rand#license)
[![Minimum rustc version](https://img.shields.io/badge/rustc-1.22+-yellow.svg)](https://github.com/rust-random/rand#rust-version-requirements)
[![License](https://img.shields.io/crates/l/rand.svg)](https://github.com/rust-random/rand#license)

A Rust library for random number generation.

Expand All @@ -18,7 +18,7 @@ implementing RNGs.

Documentation:
- [API reference for latest release](https://docs.rs/rand/0.5)
- [API reference for master branch](https://rust-lang-nursery.github.io/rand/rand/index.html)
- [API reference for master branch](https://rust-random.github.io/rand/rand/index.html)
- [Additional documentation (subdir)](doc/README.md)


Expand Down
6 changes: 3 additions & 3 deletions doc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ documentation.

The following example programs may be of interest:

- [examples/monte-carlo.rs](https://github.com/rust-lang-nursery/rand/blob/master/examples/monte-carlo.rs)
- [examples/monty-hall.rs](https://github.com/rust-lang-nursery/rand/blob/master/examples/monty-hall.rs)
- [examples/monte-carlo.rs](https://github.com/rust-random/rand/blob/master/examples/monte-carlo.rs)
- [examples/monty-hall.rs](https://github.com/rust-random/rand/blob/master/examples/monty-hall.rs)

## References

API documentation can be found:

- [`rand` API on docs.rs](https://docs.rs/rand/)
- [`rand_core` API on docs.rs](https://docs.rs/rand_core/)
- [self-published API on github.io](https://rust-lang-nursery.github.io/rand/rand/index.html) (latest code in master branch)
- [self-published API on github.io](https://rust-random.github.io/rand/rand/index.html) (latest code in master branch)
- by running `cargo doc --no-deps --all --all-features`

## Project policies
Expand Down
6 changes: 3 additions & 3 deletions rand_core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.2.1" # NB: When modifying, also modify html_root_url in lib.rs
authors = ["The Rust Project Developers"]
license = "MIT/Apache-2.0"
readme = "README.md"
repository = "https://github.com/rust-lang-nursery/rand"
repository = "https://github.com/rust-random/rand"
documentation = "https://docs.rs/rand_core"
homepage = "https://crates.io/crates/rand_core"
description = """
Expand All @@ -14,8 +14,8 @@ keywords = ["random", "rng"]
categories = ["algorithms", "no-std"]

[badges]
travis-ci = { repository = "rust-lang-nursery/rand" }
appveyor = { repository = "alexcrichton/rand" }
travis-ci = { repository = "rust-random/rand" }
appveyor = { repository = "dhardy/rand" }

[features]
default = ["std"]
Expand Down
10 changes: 5 additions & 5 deletions rand_core/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# rand_core

[![Build Status](https://travis-ci.org/rust-lang-nursery/rand.svg)](https://travis-ci.org/rust-lang-nursery/rand)
[![Build Status](https://ci.appveyor.com/api/projects/status/github/rust-lang-nursery/rand?svg=true)](https://ci.appveyor.com/project/alexcrichton/rand)
[![Build Status](https://travis-ci.org/rust-random/rand.svg)](https://travis-ci.org/rust-random/rand)
[![Build Status](https://ci.appveyor.com/api/projects/status/github/rust-random/rand?svg=true)](https://ci.appveyor.com/project/dhardy/rand)
[![Latest version](https://img.shields.io/crates/v/rand_core.svg)](https://crates.io/crates/rand_core)
[![Documentation](https://docs.rs/rand_core/badge.svg)](https://docs.rs/rand_core)
[![Minimum rustc version](https://img.shields.io/badge/rustc-1.22+-yellow.svg)](https://github.com/rust-lang-nursery/rand#rust-version-requirements)
[![License](https://img.shields.io/crates/l/rand_core.svg)](https://github.com/rust-lang-nursery/rand/tree/master/rand_core#license)
[![Minimum rustc version](https://img.shields.io/badge/rustc-1.22+-yellow.svg)](https://github.com/rust-random/rand#rust-version-requirements)
[![License](https://img.shields.io/crates/l/rand_core.svg)](https://github.com/rust-random/rand/tree/master/rand_core#license)

Core traits and error types of the [rand] library, plus tools for implementing
RNGs.
Expand All @@ -21,7 +21,7 @@ point, list permutations and secure initialisation of RNGs). Most users should
prefer to use the main [rand] crate.

Documentation:
[master branch](https://rust-lang-nursery.github.io/rand/rand_core/index.html),
[master branch](https://rust-random.github.io/rand/rand_core/index.html),
[by release](https://docs.rs/rand_core)

[Changelog](CHANGELOG.md)
Expand Down
6 changes: 3 additions & 3 deletions rand_isaac/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.1.0" # NB: When modifying, also modify html_root_url in lib.rs
authors = ["The Rust Project Developers"]
license = "MIT/Apache-2.0"
readme = "README.md"
repository = "https://github.com/rust-lang-nursery/rand"
repository = "https://github.com/rust-random/rand"
documentation = "https://docs.rs/rand_isaac"
homepage = "https://crates.io/crates/rand_isaac"
description = """
Expand All @@ -14,8 +14,8 @@ keywords = ["random", "rng", "isaac"]
categories = ["algorithms", "no-std"]

[badges]
travis-ci = { repository = "rust-lang-nursery/rand" }
appveyor = { repository = "alexcrichton/rand" }
travis-ci = { repository = "rust-random/rand" }
appveyor = { repository = "dhardy/rand" }

[features]
serde1 = ["serde", "serde_derive", "rand_core/serde1"]
Expand Down
10 changes: 5 additions & 5 deletions rand_isaac/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# rand_isaac

[![Build Status](https://travis-ci.org/rust-lang-nursery/rand.svg)](https://travis-ci.org/rust-lang-nursery/rand)
[![Build Status](https://ci.appveyor.com/api/projects/status/github/rust-lang-nursery/rand?svg=true)](https://ci.appveyor.com/project/alexcrichton/rand)
[![Build Status](https://travis-ci.org/rust-random/rand.svg)](https://travis-ci.org/rust-random/rand)
[![Build Status](https://ci.appveyor.com/api/projects/status/github/rust-random/rand?svg=true)](https://ci.appveyor.com/project/dhardy/rand)
[![Latest version](https://img.shields.io/crates/v/rand_isaac.svg)](https://crates.io/crates/rand_isaac)
[![Documentation](https://docs.rs/rand_isaac/badge.svg)](https://docs.rs/rand_isaac)
[![Minimum rustc version](https://img.shields.io/badge/rustc-1.22+-yellow.svg)](https://github.com/rust-lang-nursery/rand#rust-version-requirements)
[![License](https://img.shields.io/crates/l/rand_isaac.svg)](https://github.com/rust-lang-nursery/rand/tree/master/rand_isaac#license)
[![Minimum rustc version](https://img.shields.io/badge/rustc-1.22+-yellow.svg)](https://github.com/rust-random/rand#rust-version-requirements)
[![License](https://img.shields.io/crates/l/rand_isaac.svg)](https://github.com/rust-random/rand/tree/master/rand_isaac#license)

Implements the ISAAC and ISAAC-64 random number generators.

Expand All @@ -18,7 +18,7 @@ ISAAC is notably fast and produces excellent quality random numbers for
non-cryptographic applications.

Documentation:
[master branch](https://rust-lang-nursery.github.io/rand/rand_isaac/index.html),
[master branch](https://rust-random.github.io/rand/rand_isaac/index.html),
[by release](https://docs.rs/rand_isaac)

[Changelog](CHANGELOG.md)
Expand Down
6 changes: 3 additions & 3 deletions rand_xorshift/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.1.0" # NB: When modifying, also modify html_root_url in lib.rs
authors = ["The Rust Project Developers"]
license = "MIT/Apache-2.0"
readme = "README.md"
repository = "https://github.com/rust-lang-nursery/rand"
repository = "https://github.com/rust-random/rand"
documentation = "https://docs.rs/rand_isaac"
homepage = "https://crates.io/crates/rand_isaac"
description = """
Expand All @@ -14,8 +14,8 @@ keywords = ["random", "rng", "xorshift"]
categories = ["algorithms", "no-std"]

[badges]
travis-ci = { repository = "rust-lang-nursery/rand" }
appveyor = { repository = "alexcrichton/rand" }
travis-ci = { repository = "rust-random/rand" }
appveyor = { repository = "dhardy/rand" }

[features]
serde1 = ["serde", "serde_derive"]
Expand Down
10 changes: 5 additions & 5 deletions rand_xorshift/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# rand_xorshift

[![Build Status](https://travis-ci.org/rust-lang-nursery/rand.svg)](https://travis-ci.org/rust-lang-nursery/rand)
[![Build Status](https://ci.appveyor.com/api/projects/status/github/rust-lang-nursery/rand?svg=true)](https://ci.appveyor.com/project/alexcrichton/rand)
[![Build Status](https://travis-ci.org/rust-random/rand.svg)](https://travis-ci.org/rust-random/rand)
[![Build Status](https://ci.appveyor.com/api/projects/status/github/rust-random/rand?svg=true)](https://ci.appveyor.com/project/dhardy/rand)
[![Latest version](https://img.shields.io/crates/v/rand_xorshift.svg)](https://crates.io/crates/rand_xorshift)
[![Documentation](https://docs.rs/rand_xorshift/badge.svg)](https://docs.rs/rand_xorshift)
[![Minimum rustc version](https://img.shields.io/badge/rustc-1.22+-yellow.svg)](https://github.com/rust-lang-nursery/rand#rust-version-requirements)
[![License](https://img.shields.io/crates/l/rand_xorshift.svg)](https://github.com/rust-lang-nursery/rand/tree/master/rand_xorshift#license)
[![Minimum rustc version](https://img.shields.io/badge/rustc-1.22+-yellow.svg)](https://github.com/rust-random/rand#rust-version-requirements)
[![License](https://img.shields.io/crates/l/rand_xorshift.svg)](https://github.com/rust-random/rand/tree/master/rand_xorshift#license)

Implements the Xorshift random number generator.

Expand All @@ -18,7 +18,7 @@ requirements, use a more secure one such as `StdRng` or `OsRng`.
*Journal of Statistical Software*. Vol. 8 (Issue 14).

Documentation:
[master branch](https://rust-lang-nursery.github.io/rand/rand_xorshift/index.html),
[master branch](https://rust-random.github.io/rand/rand_xorshift/index.html),
[by release](https://docs.rs/rand_isaac)

[Changelog](CHANGELOG.md)
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,9 @@
//! For some inspiration, see the examples:
//!
//! - [Monte Carlo estimation of π](
//! https://github.com/rust-lang-nursery/rand/blob/master/examples/monte-carlo.rs)
//! https://github.com/rust-random/rand/blob/master/examples/monte-carlo.rs)
//! - [Monty Hall Problem](
//! https://github.com/rust-lang-nursery/rand/blob/master/examples/monty-hall.rs)
//! https://github.com/rust-random/rand/blob/master/examples/monty-hall.rs)
//!
//!
//! [`distributions` module]: distributions/index.html
Expand Down
2 changes: 1 addition & 1 deletion src/seq/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ pub fn sample<R>(rng: &mut R, length: usize, amount: usize) -> IndexVec
let length = length as u32;

// Choice of algorithm here depends on both length and amount. See:
// https://github.com/rust-lang-nursery/rand/pull/479
// https://github.com/rust-random/rand/pull/479
// We do some calculations with f32. Accuracy is not very important.

if amount < 163 {
Expand Down