diff options
Diffstat (limited to 'src/rust/external/crypto_rand.rs')
-rw-r--r-- | src/rust/external/crypto_rand.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/rust/external/crypto_rand.rs b/src/rust/external/crypto_rand.rs index af1ade0161..b68f98b358 100644 --- a/src/rust/external/crypto_rand.rs +++ b/src/rust/external/crypto_rand.rs @@ -2,7 +2,7 @@ // Copyright (c) 2018, isis agora lovecruft // See LICENSE for licensing information -//! Bindings to external (P)RNG interfaces and utilities in +//! Bindings to external (P)RNG interfaces and utilities in //! src/common/crypto_rand.[ch]. //! //! We wrap our C implementations in src/common/crypto_rand.[ch] here in order @@ -80,8 +80,5 @@ pub fn c_tor_crypto_rand_time_range(min: &Duration, max: &Duration) -> Duration /// Return a pseudorandom 64-bit float, chosen uniformly from the range [0.0, 1.0). pub fn c_tor_crypto_rand_double() -> f64 { - unsafe { - crypto_rand_double() - } + unsafe { crypto_rand_double() } } - |