diff --git a/LICENSE-APACHE b/LICENSE-APACHE index 16fe87b0..e8a1bef0 100644 --- a/LICENSE-APACHE +++ b/LICENSE-APACHE @@ -1,6 +1,6 @@ Apache License Version 2.0, January 2004 - http://www.apache.org/licenses/ + https://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION @@ -192,7 +192,7 @@ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + https://www.apache.org/licenses/ Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, diff --git a/src/chacha.rs b/src/chacha.rs index 1acec5e9..7431fb3b 100644 --- a/src/chacha.rs +++ b/src/chacha.rs @@ -1,10 +1,10 @@ // Copyright 2014 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at -// http://rust-lang.org/COPYRIGHT. +// https://www.rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 or the MIT license -// , at your +// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license +// , at your // option. This file may not be copied, modified, or distributed // except according to those terms. @@ -25,7 +25,7 @@ const CHACHA_ROUNDS: u32 = 20; // Cryptographically secure from 8 upwards as of /// the operating system for cases that need high security. /// /// [1]: D. J. Bernstein, [*ChaCha, a variant of -/// Salsa20*](http://cr.yp.to/chacha.html) +/// Salsa20*](https://cr.yp.to/chacha.html) #[derive(Copy, Clone, Debug)] pub struct ChaChaRng { buffer: [w32; STATE_WORDS], // Internal buffer of output @@ -148,7 +148,7 @@ impl ChaChaRng { /// counter counter counter counter /// ``` /// [1]: Daniel J. Bernstein. [*Extending the Salsa20 - /// nonce.*](http://cr.yp.to/papers.html#xsalsa) + /// nonce.*](https://cr.yp.to/papers.html#xsalsa) fn init(&mut self, key: &[u32; KEY_WORDS]) { self.state[0] = w(0x61707865); self.state[1] = w(0x3320646E); @@ -267,7 +267,7 @@ mod test { #[test] fn test_rng_true_values() { // Test vectors 1 and 2 from - // http://tools.ietf.org/html/draft-nir-cfrg-chacha20-poly1305-04 + // https://tools.ietf.org/html/draft-nir-cfrg-chacha20-poly1305-04 let seed : &[_] = &[0u32; 8]; let mut ra: ChaChaRng = SeedableRng::from_seed(seed); diff --git a/src/distributions/exponential.rs b/src/distributions/exponential.rs index c3c924c6..0580f63c 100644 --- a/src/distributions/exponential.rs +++ b/src/distributions/exponential.rs @@ -1,10 +1,10 @@ // Copyright 2013 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at -// http://rust-lang.org/COPYRIGHT. +// https://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 or the MIT license -// , at your +// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license +// , at your // option. This file may not be copied, modified, or distributed // except according to those terms. @@ -23,7 +23,7 @@ use distributions::{ziggurat, ziggurat_tables, Sample, IndependentSample}; /// /// [1]: Jurgen A. Doornik (2005). [*An Improved Ziggurat Method to /// Generate Normal Random -/// Samples*](http://www.doornik.com/research/ziggurat.pdf). Nuffield +/// Samples*](https://www.doornik.com/research/ziggurat.pdf). Nuffield /// College, Oxford /// /// # Example diff --git a/src/distributions/gamma.rs b/src/distributions/gamma.rs index 28064958..9c30a058 100644 --- a/src/distributions/gamma.rs +++ b/src/distributions/gamma.rs @@ -1,10 +1,10 @@ // Copyright 2013 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at -// http://rust-lang.org/COPYRIGHT. +// https://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 or the MIT license -// , at your +// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license +// , at your // option. This file may not be copied, modified, or distributed // except according to those terms. // @@ -48,7 +48,7 @@ use super::{IndependentSample, Sample, Exp}; /// [1]: George Marsaglia and Wai Wan Tsang. 2000. "A Simple Method /// for Generating Gamma Variables" *ACM Trans. Math. Softw.* 26, 3 /// (September 2000), -/// 363-372. DOI:[10.1145/358407.358414](http://doi.acm.org/10.1145/358407.358414) +/// 363-372. DOI:[10.1145/358407.358414](https://doi.acm.org/10.1145/358407.358414) #[derive(Clone, Copy, Debug)] pub struct Gamma { repr: GammaRepr, diff --git a/src/distributions/mod.rs b/src/distributions/mod.rs index 876735aa..07f7a56a 100644 --- a/src/distributions/mod.rs +++ b/src/distributions/mod.rs @@ -1,10 +1,10 @@ // Copyright 2013 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at -// http://rust-lang.org/COPYRIGHT. +// https://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 or the MIT license -// , at your +// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license +// , at your // option. This file may not be copied, modified, or distributed // except according to those terms. diff --git a/src/distributions/normal.rs b/src/distributions/normal.rs index 280613d8..55640fd3 100644 --- a/src/distributions/normal.rs +++ b/src/distributions/normal.rs @@ -1,10 +1,10 @@ // Copyright 2013 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at -// http://rust-lang.org/COPYRIGHT. +// https://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 or the MIT license -// , at your +// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license +// , at your // option. This file may not be copied, modified, or distributed // except according to those terms. @@ -22,7 +22,7 @@ use distributions::{ziggurat, ziggurat_tables, Sample, IndependentSample}; /// /// [1]: Jurgen A. Doornik (2005). [*An Improved Ziggurat Method to /// Generate Normal Random -/// Samples*](http://www.doornik.com/research/ziggurat.pdf). Nuffield +/// Samples*](https://www.doornik.com/research/ziggurat.pdf). Nuffield /// College, Oxford /// /// # Example diff --git a/src/distributions/range.rs b/src/distributions/range.rs index 7206941d..0d812d72 100644 --- a/src/distributions/range.rs +++ b/src/distributions/range.rs @@ -1,10 +1,10 @@ // Copyright 2013 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at -// http://rust-lang.org/COPYRIGHT. +// https://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 or the MIT license -// , at your +// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license +// , at your // option. This file may not be copied, modified, or distributed // except according to those terms. diff --git a/src/distributions/ziggurat_tables.rs b/src/distributions/ziggurat_tables.rs index b6de4bf8..11a21727 100644 --- a/src/distributions/ziggurat_tables.rs +++ b/src/distributions/ziggurat_tables.rs @@ -1,10 +1,10 @@ // Copyright 2013 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at -// http://rust-lang.org/COPYRIGHT. +// https://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 or the MIT license -// , at your +// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license +// , at your // option. This file may not be copied, modified, or distributed // except according to those terms. diff --git a/src/isaac.rs b/src/isaac.rs index b70a8e61..429f8a0b 100644 --- a/src/isaac.rs +++ b/src/isaac.rs @@ -1,10 +1,10 @@ // Copyright 2013 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at -// http://rust-lang.org/COPYRIGHT. +// https://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 or the MIT license -// , at your +// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license +// , at your // option. This file may not be copied, modified, or distributed // except according to those terms. diff --git a/src/lib.rs b/src/lib.rs index cd856d18..d4f60399 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,10 +1,10 @@ // Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at -// http://rust-lang.org/COPYRIGHT. +// https://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 or the MIT license -// , at your +// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license +// , at your // option. This file may not be copied, modified, or distributed // except according to those terms. @@ -149,7 +149,7 @@ //! This program will simulate the game show and with large enough simulation //! steps it will indeed confirm that it is better to switch. //! -//! [Monty Hall Problem]: http://en.wikipedia.org/wiki/Monty_Hall_problem +//! [Monty Hall Problem]: https://en.wikipedia.org/wiki/Monty_Hall_problem //! //! ``` //! use rand::Rng; @@ -722,7 +722,7 @@ pub trait SeedableRng: Rng { /// requirements, use a more secure one such as `IsaacRng` or `OsRng`. /// /// [1]: Marsaglia, George (July 2003). ["Xorshift -/// RNGs"](http://www.jstatsoft.org/v08/i14/paper). *Journal of +/// RNGs"](https://www.jstatsoft.org/v08/i14/paper). *Journal of /// Statistical Software*. Vol. 8 (Issue 14). #[allow(missing_copy_implementations)] #[derive(Clone, Debug)] diff --git a/src/os.rs b/src/os.rs index 1eb903a2..b8437858 100644 --- a/src/os.rs +++ b/src/os.rs @@ -1,10 +1,10 @@ // Copyright 2013-2015 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at -// http://rust-lang.org/COPYRIGHT. +// https://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 or the MIT license -// , at your +// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license +// , at your // option. This file may not be copied, modified, or distributed // except according to those terms. diff --git a/src/rand_impls.rs b/src/rand_impls.rs index a9cf5d99..704e38bf 100644 --- a/src/rand_impls.rs +++ b/src/rand_impls.rs @@ -1,10 +1,10 @@ // Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at -// http://rust-lang.org/COPYRIGHT. +// https://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 or the MIT license -// , at your +// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license +// , at your // option. This file may not be copied, modified, or distributed // except according to those terms. diff --git a/src/read.rs b/src/read.rs index c7351b75..7a20a52e 100644 --- a/src/read.rs +++ b/src/read.rs @@ -1,10 +1,10 @@ // Copyright 2013 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at -// http://rust-lang.org/COPYRIGHT. +// https://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 or the MIT license -// , at your +// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license +// , at your // option. This file may not be copied, modified, or distributed // except according to those terms. diff --git a/src/reseeding.rs b/src/reseeding.rs index 2fba9f4a..88458a3c 100644 --- a/src/reseeding.rs +++ b/src/reseeding.rs @@ -1,10 +1,10 @@ // Copyright 2013 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at -// http://rust-lang.org/COPYRIGHT. +// https://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 or the MIT license -// , at your +// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license +// , at your // option. This file may not be copied, modified, or distributed // except according to those terms.