From 93544481b49b6898b2049aa138b41277d16ce921 Mon Sep 17 00:00:00 2001 From: Gabriel Majeri Date: Wed, 18 Oct 2017 19:59:04 +0300 Subject: [PATCH 1/3] Replace HTTP links with HTTPS --- LICENSE-APACHE | 4 ++-- src/chacha.rs | 12 ++++++------ src/distributions/exponential.rs | 8 ++++---- src/distributions/gamma.rs | 8 ++++---- src/distributions/mod.rs | 6 +++--- src/distributions/normal.rs | 8 ++++---- src/distributions/range.rs | 6 +++--- src/distributions/ziggurat_tables.rs | 6 +++--- src/isaac.rs | 6 +++--- src/lib.rs | 10 +++++----- src/os.rs | 6 +++--- src/rand_impls.rs | 6 +++--- src/read.rs | 6 +++--- src/reseeding.rs | 6 +++--- 14 files changed, 49 insertions(+), 49 deletions(-) diff --git a/LICENSE-APACHE b/LICENSE-APACHE index 16fe87b06e8..e8a1bef0ba7 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 1acec5e9bf5..7431fb3bf1f 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 c3c924c6b7e..0580f63c46b 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 28064958731..9c30a05833e 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 876735aae76..07f7a56a725 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 280613d8595..55640fd3c08 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 7206941d0dc..0d812d728fd 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 b6de4bf892c..11a217276bf 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 b70a8e61d3f..429f8a0baec 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 cd856d1885b..d4f60399e23 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 1eb903a2251..b8437858227 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 a9cf5d9908b..704e38bfd32 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 c7351b75937..7a20a52ec2a 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 2fba9f4ad60..88458a3c87e 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. From a82528f7f4a121516a8411ab23602278cc2fecb8 Mon Sep 17 00:00:00 2001 From: Gabriel Majeri Date: Tue, 9 Jan 2018 08:39:55 +0200 Subject: [PATCH 2/3] Add more links --- CHANGELOG.md | 3 +-- src/impls.rs | 6 +++--- src/jitter.rs | 6 +++--- src/prng/isaac.rs | 8 ++++---- src/prng/isaac64.rs | 6 +++--- src/prng/mod.rs | 6 +++--- src/prng/xorshift.rs | 6 +++--- src/seq.rs | 6 +++--- utils/ziggurat_tables.py | 12 ++++++------ 9 files changed, 29 insertions(+), 30 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4898fc50933..eab4a92ca7d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ 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](http://semver.org/spec/v2.0.0.html). +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [0.4.2] - 2018-01-05 ### Changed @@ -262,4 +262,3 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [0.10-pre] - 2014-03-02 ### Added - Seperate `rand` out of the standard library - diff --git a/src/impls.rs b/src/impls.rs index 70c6006f628..34c17786c1f 100644 --- a/src/impls.rs +++ b/src/impls.rs @@ -1,10 +1,10 @@ // Copyright 2013-2017 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/jitter.rs b/src/jitter.rs index f3d94912212..9e24c8b3423 100644 --- a/src/jitter.rs +++ b/src/jitter.rs @@ -1,10 +1,10 @@ // Copyright 2017 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/prng/isaac.rs b/src/prng/isaac.rs index f694c74b911..811c8f4640b 100644 --- a/src/prng/isaac.rs +++ b/src/prng/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. @@ -86,7 +86,7 @@ const RAND_SIZE: usize = 1 << RAND_SIZE_LEN; /// (http://burtleburtle.net/bob/rand/isaac.html) /// /// [3]: Jean-Philippe Aumasson, [*On the pseudo-random generator ISAAC*] -/// (http://eprint.iacr.org/2006/438) +/// (https://eprint.iacr.org/2006/438) pub struct IsaacRng { rsl: [u32; RAND_SIZE], mem: [w32; RAND_SIZE], diff --git a/src/prng/isaac64.rs b/src/prng/isaac64.rs index f95e8e84506..ed71fb7f8ba 100644 --- a/src/prng/isaac64.rs +++ b/src/prng/isaac64.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/prng/mod.rs b/src/prng/mod.rs index 69f5d8c3c20..ecf14b75fe3 100644 --- a/src/prng/mod.rs +++ b/src/prng/mod.rs @@ -1,10 +1,10 @@ // Copyright 2017 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/prng/xorshift.rs b/src/prng/xorshift.rs index 8d97756985e..ea83697996d 100644 --- a/src/prng/xorshift.rs +++ b/src/prng/xorshift.rs @@ -1,10 +1,10 @@ // Copyright 2017 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/seq.rs b/src/seq.rs index a7889fe34b2..57d7aeff7cf 100644 --- a/src/seq.rs +++ b/src/seq.rs @@ -1,10 +1,10 @@ // Copyright 2017 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/utils/ziggurat_tables.py b/utils/ziggurat_tables.py index 762f9565b78..9973b83f4b3 100755 --- a/utils/ziggurat_tables.py +++ b/utils/ziggurat_tables.py @@ -2,11 +2,11 @@ # # 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. @@ -107,11 +107,11 @@ def render_table(name, values): with open('ziggurat_tables.rs', 'w') as f: f.write('''// 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. From df1151b58bc0fee980237ab58fa1f269401c7a15 Mon Sep 17 00:00:00 2001 From: Gabriel Majeri Date: Tue, 9 Jan 2018 08:41:16 +0200 Subject: [PATCH 3/3] Fix license link --- LICENSE-APACHE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE-APACHE b/LICENSE-APACHE index e8a1bef0ba7..17d74680f8c 100644 --- a/LICENSE-APACHE +++ b/LICENSE-APACHE @@ -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 - https://www.apache.org/licenses/ + https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS,