Skip to content

Commit 50d839d

Browse files
authored
docs: update dead link in util/rng.rs (#820)
1 parent 9754acb commit 50d839d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tower/src/util/rng.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ pub trait Rng {
2525
/// Generate a random [`f64`] between `[0, 1)`.
2626
fn next_f64(&mut self) -> f64 {
2727
// Borrowed from:
28-
// https://github.com/rust-random/rand/blob/master/src/distributions/float.rs#L106
28+
// https://github.com/rust-random/rand/blob/master/src/distr/float.rs#L108
2929
let float_size = std::mem::size_of::<f64>() as u32 * 8;
3030
let precision = 52 + 1;
3131
let scale = 1.0 / ((1u64 << precision) as f64);

0 commit comments

Comments
 (0)