Skip to content

Commit fd940fc

Browse files
Change http:// to https:// in comments (#7)
1 parent 68a5835 commit fd940fc

File tree

1 file changed

+4
-4
lines changed
  • codecs/random-projection/src

1 file changed

+4
-4
lines changed

codecs/random-projection/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -850,12 +850,12 @@ impl FloatExt for f32 {
850850
((hash >> 32) & u64::from(u32::MAX)) as u32,
851851
);
852852

853-
// http://prng.di.unimi.it -> Generating uniform doubles in the unit interval [0.0, 1.0)
853+
// https://prng.di.unimi.it -> Generating uniform doubles in the unit interval [0.0, 1.0)
854854
// the hash is shifted to only cover the mantissa
855855
#[allow(clippy::cast_precision_loss)]
856856
let u0 = ClosedOpenUnit(((high >> 8) as Self) * Self::from_bits(0x3380_0000_u32)); // 0x1.0p-24
857857

858-
// http://prng.di.unimi.it -> Generating uniform doubles in the unit interval (0.0, 1.0]
858+
// https://prng.di.unimi.it -> Generating uniform doubles in the unit interval (0.0, 1.0]
859859
// the hash is shifted to only cover the mantissa
860860
#[allow(clippy::cast_precision_loss)]
861861
let u1 = OpenClosedUnit((((low >> 8) + 1) as Self) * Self::from_bits(0x3380_0000_u32)); // 0x1.0p-24
@@ -883,15 +883,15 @@ impl FloatExt for f64 {
883883
}
884884

885885
fn u01x2(hash: u64) -> (ClosedOpenUnit<Self>, OpenClosedUnit<Self>) {
886-
// http://prng.di.unimi.it -> Generating uniform doubles in the unit interval [0.0, 1.0)
886+
// https://prng.di.unimi.it -> Generating uniform doubles in the unit interval [0.0, 1.0)
887887
// the hash is shifted to only cover the mantissa
888888
#[allow(clippy::cast_precision_loss)]
889889
let u0 =
890890
ClosedOpenUnit(((hash >> 11) as Self) * Self::from_bits(0x3CA0_0000_0000_0000_u64)); // 0x1.0p-53
891891

892892
let hash = seahash_diffuse(hash + 1);
893893

894-
// http://prng.di.unimi.it -> Generating uniform doubles in the unit interval (0.0, 1.0]
894+
// https://prng.di.unimi.it -> Generating uniform doubles in the unit interval (0.0, 1.0]
895895
// the hash is shifted to only cover the mantissa
896896
#[allow(clippy::cast_precision_loss)]
897897
let u1 = OpenClosedUnit(

0 commit comments

Comments
 (0)