Skip to content

Commit 301825e

Browse files
authored
Merge pull request #179 from GabrielMajeri/https
Replace HTTP links with HTTPS
2 parents 7d9decd + 570fd8b commit 301825e

23 files changed

+101
-102
lines changed

CHANGELOG.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
All notable changes to this project will be documented in this file.
33

44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5-
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
5+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77
## [0.4.2] - 2018-01-05
88
### Changed
@@ -262,4 +262,3 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
262262
## [0.10-pre] - 2014-03-02
263263
### Added
264264
- Seperate `rand` out of the standard library
265-

LICENSE-APACHE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Apache License
22
Version 2.0, January 2004
3-
http://www.apache.org/licenses/
3+
https://www.apache.org/licenses/
44

55
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
66

@@ -192,7 +192,7 @@ Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.
193193
You may obtain a copy of the License at
194194

195-
http://www.apache.org/licenses/LICENSE-2.0
195+
https://www.apache.org/licenses/LICENSE-2.0
196196

197197
Unless required by applicable law or agreed to in writing, software
198198
distributed under the License is distributed on an "AS IS" BASIS,

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ optional features are available:
7272
- `nightly` enables all unstable features (`i128_support`)
7373
- `std` enabled by default; by setting "default-features = false" `no_std`
7474
mode is activated; this removes features depending on `std` functionality:
75-
75+
7676
- `OsRng` is entirely unavailable
7777
- `JitterRng` code is still present, but a nanosecond timer must be
7878
provided via `JitterRng::new_with_timer`

src/distributions/exponential.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
3-
// http://rust-lang.org/COPYRIGHT.
3+
// https://rust-lang.org/COPYRIGHT.
44
//
55
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
6+
// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7+
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

@@ -23,7 +23,7 @@ use distributions::{ziggurat, ziggurat_tables, Sample, IndependentSample};
2323
///
2424
/// [1]: Jurgen A. Doornik (2005). [*An Improved Ziggurat Method to
2525
/// Generate Normal Random
26-
/// Samples*](http://www.doornik.com/research/ziggurat.pdf). Nuffield
26+
/// Samples*](https://www.doornik.com/research/ziggurat.pdf). Nuffield
2727
/// College, Oxford
2828
///
2929
/// # Example

src/distributions/gamma.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
3-
// http://rust-lang.org/COPYRIGHT.
3+
// https://rust-lang.org/COPYRIGHT.
44
//
55
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
6+
// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7+
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010
//
@@ -48,7 +48,7 @@ use super::{IndependentSample, Sample, Exp};
4848
/// [1]: George Marsaglia and Wai Wan Tsang. 2000. "A Simple Method
4949
/// for Generating Gamma Variables" *ACM Trans. Math. Softw.* 26, 3
5050
/// (September 2000),
51-
/// 363-372. DOI:[10.1145/358407.358414](http://doi.acm.org/10.1145/358407.358414)
51+
/// 363-372. DOI:[10.1145/358407.358414](https://doi.acm.org/10.1145/358407.358414)
5252
#[derive(Clone, Copy, Debug)]
5353
pub struct Gamma {
5454
repr: GammaRepr,

src/distributions/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
3-
// http://rust-lang.org/COPYRIGHT.
3+
// https://rust-lang.org/COPYRIGHT.
44
//
55
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
6+
// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7+
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

@@ -301,7 +301,7 @@ mod tests {
301301
fn next_u64(&mut self) -> u64 {
302302
self.next_u32() as u64
303303
}
304-
304+
305305
fn fill_bytes(&mut self, dest: &mut [u8]) {
306306
impls::fill_bytes_via_u32(self, dest)
307307
}

src/distributions/normal.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
3-
// http://rust-lang.org/COPYRIGHT.
3+
// https://rust-lang.org/COPYRIGHT.
44
//
55
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
6+
// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7+
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

@@ -22,7 +22,7 @@ use distributions::{ziggurat, ziggurat_tables, Sample, IndependentSample};
2222
///
2323
/// [1]: Jurgen A. Doornik (2005). [*An Improved Ziggurat Method to
2424
/// Generate Normal Random
25-
/// Samples*](http://www.doornik.com/research/ziggurat.pdf). Nuffield
25+
/// Samples*](https://www.doornik.com/research/ziggurat.pdf). Nuffield
2626
/// College, Oxford
2727
///
2828
/// # Example

src/distributions/range.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
3-
// http://rust-lang.org/COPYRIGHT.
3+
// https://rust-lang.org/COPYRIGHT.
44
//
55
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
6+
// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7+
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

src/distributions/ziggurat_tables.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
3-
// http://rust-lang.org/COPYRIGHT.
3+
// https://rust-lang.org/COPYRIGHT.
44
//
55
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
6+
// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7+
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

src/impls.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
// Copyright 2013-2017 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
3-
// http://rust-lang.org/COPYRIGHT.
3+
// https://rust-lang.org/COPYRIGHT.
44
//
55
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
6+
// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7+
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

1111
//! Helper functions for implementing `Rng` functions.
12-
//!
12+
//!
1313
//! For cross-platform reproducibility, these functions all use Little Endian:
1414
//! least-significant part first. For example, `next_u64_via_u32` takes `u32`
1515
//! values `x, y`, then outputs `(y << 32) | x`. To implement `next_u32`
1616
//! from `next_u64` in little-endian order, one should use `next_u64() as u32`.
17-
//!
17+
//!
1818
//! Byte-swapping (like the std `to_le` functions) is only needed to convert
1919
//! to/from byte sequences, and since its purpose is reproducibility,
2020
//! non-reproducible sources (e.g. `OsRng`) need not bother with it.

src/jitter.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// Copyright 2017 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
3-
// http://rust-lang.org/COPYRIGHT.
3+
// https://rust-lang.org/COPYRIGHT.
44
//
55
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
6+
// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7+
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010
//

src/lib.rs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// Copyright 2013-2017 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
3-
// http://rust-lang.org/COPYRIGHT.
3+
// https://rust-lang.org/COPYRIGHT.
44
//
55
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
6+
// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7+
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

@@ -149,7 +149,7 @@
149149
//! This program will simulate the game show and with large enough simulation
150150
//! steps it will indeed confirm that it is better to switch.
151151
//!
152-
//! [Monty Hall Problem]: http://en.wikipedia.org/wiki/Monty_Hall_problem
152+
//! [Monty Hall Problem]: https://en.wikipedia.org/wiki/Monty_Hall_problem
153153
//!
154154
//! ```
155155
//! use rand::Rng;
@@ -339,7 +339,7 @@ pub trait Rand : Sized {
339339
/// A random number generator.
340340
pub trait Rng {
341341
/// Return the next random `u32`.
342-
///
342+
///
343343
/// Implementations of this trait must implement at least one of
344344
/// `next_u32`, `next_u64` and `fill_bytes` directly. In the case this
345345
/// function is not implemented directly, it can be implemented using
@@ -348,14 +348,14 @@ pub trait Rng {
348348
fn next_u32(&mut self) -> u32;
349349

350350
/// Return the next random `u64`.
351-
///
351+
///
352352
/// Implementations of this trait must implement at least one of
353353
/// `next_u32`, `next_u64` and `fill_bytes` directly. In the case this
354354
/// function is not implemented directly, the default implementation will
355355
/// generate values via `next_u32` in little-endian fashion, or this
356356
/// function can be implemented via `fill_bytes` (TODO: expose helper
357357
/// function).
358-
///
358+
///
359359
/// Types wrapping an inner RNG must not use the default implementation,
360360
/// since the inner RNG's implementation may produce different values.
361361
fn next_u64(&mut self) -> u64 {
@@ -415,22 +415,22 @@ pub trait Rng {
415415
}
416416

417417
/// Fill `dest` with random data.
418-
///
418+
///
419419
/// Implementations of this trait must implement at least one of
420420
/// `next_u32`, `next_u64` and `fill_bytes` directly. In the case this
421421
/// function is not implemented directly, the default implementation will
422422
/// generate values via `next_u64` in little-endian fashion.
423423
/// (TODO: expose helper function to allow implementation via `next_u32`.)
424-
///
424+
///
425425
/// There is no requirement on how this method generates values relative to
426426
/// `next_u32` or `next_u64`; e.g. a `u64` cast to bytes is not required to
427427
/// have the same value as eight bytes filled via this function. There *is*
428428
/// a requirement of portability for reproducible generators which implies
429429
/// that any seedable generator must fix endianness when generating bytes.
430-
///
430+
///
431431
/// Types wrapping an inner RNG must not use the default implementation,
432432
/// since the inner RNG's implementation may produce different values.
433-
///
433+
///
434434
/// This method should guarantee that `dest` is entirely filled
435435
/// with new data, and may panic if this is impossible
436436
/// (e.g. reading past the end of a file that is being used as the
@@ -802,7 +802,7 @@ impl Rng for StdRng {
802802
fn next_u64(&mut self) -> u64 {
803803
self.rng.next_u64()
804804
}
805-
805+
806806
#[inline]
807807
fn fill_bytes(&mut self, dest: &mut [u8]) {
808808
self.rng.fill_bytes(dest)
@@ -1007,7 +1007,7 @@ mod test {
10071007
impl Rng for ConstRng {
10081008
fn next_u32(&mut self) -> u32 { self.i as u32 }
10091009
fn next_u64(&mut self) -> u64 { self.i }
1010-
1010+
10111011
fn fill_bytes(&mut self, dest: &mut [u8]) {
10121012
impls::fill_bytes_via_u64(self, dest)
10131013
}

src/os.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// Copyright 2013-2015 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
3-
// http://rust-lang.org/COPYRIGHT.
3+
// https://rust-lang.org/COPYRIGHT.
44
//
55
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
6+
// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7+
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

src/prng/chacha.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
3-
// http://rust-lang.org/COPYRIGHT.
3+
// https://www.rust-lang.org/COPYRIGHT.
44
//
55
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
6+
// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7+
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

@@ -26,7 +26,7 @@ const CHACHA_ROUNDS: u32 = 20; // Cryptographically secure from 8 upwards as of
2626
/// the operating system for cases that need high security.
2727
///
2828
/// [1]: D. J. Bernstein, [*ChaCha, a variant of
29-
/// Salsa20*](http://cr.yp.to/chacha.html)
29+
/// Salsa20*](https://cr.yp.to/chacha.html)
3030
#[derive(Clone)]
3131
pub struct ChaChaRng {
3232
buffer: [u32; STATE_WORDS], // Internal buffer of output
@@ -153,7 +153,7 @@ impl ChaChaRng {
153153
/// counter counter counter counter
154154
/// ```
155155
/// [1]: Daniel J. Bernstein. [*Extending the Salsa20
156-
/// nonce.*](http://cr.yp.to/papers.html#xsalsa)
156+
/// nonce.*](https://cr.yp.to/papers.html#xsalsa)
157157
fn init(&mut self, key: &[u32; KEY_WORDS]) {
158158
self.state[0] = 0x61707865;
159159
self.state[1] = 0x3320646E;
@@ -207,7 +207,7 @@ impl Rng for ChaChaRng {
207207
impls::next_u64_via_u32(self)
208208
}
209209

210-
210+
211211
fn fill_bytes(&mut self, bytes: &mut [u8]) {
212212
impls::fill_bytes_via_u32(self, bytes)
213213
}
@@ -290,7 +290,7 @@ mod test {
290290
#[test]
291291
fn test_rng_true_values() {
292292
// Test vectors 1 and 2 from
293-
// http://tools.ietf.org/html/draft-nir-cfrg-chacha20-poly1305-04
293+
// https://tools.ietf.org/html/draft-nir-cfrg-chacha20-poly1305-04
294294
let seed : &[_] = &[0u32; 8];
295295
let mut ra: ChaChaRng = SeedableRng::from_seed(seed);
296296

@@ -342,7 +342,7 @@ mod test {
342342
189, 210, 25, 184, 160, 141, 237, 26,
343343
168, 54, 239, 204, 139, 119, 13, 199]);
344344
}
345-
345+
346346
#[test]
347347
fn test_rng_clone() {
348348
let seed : &[_] = &[0u32; 8];

0 commit comments

Comments
 (0)