Skip to content

Commit

Permalink
Change http:// to https:// in comments (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitriPapadopoulos authored Oct 20, 2024
1 parent 68a5835 commit fd940fc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions codecs/random-projection/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -850,12 +850,12 @@ impl FloatExt for f32 {
((hash >> 32) & u64::from(u32::MAX)) as u32,
);

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

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

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

let hash = seahash_diffuse(hash + 1);

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

0 comments on commit fd940fc

Please sign in to comment.