Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
Fix clippy warning in release mode
Alexis Sellier committed 3 years ago
commit 9d244b221a167c1c2bacbd00ecefc1a44ecab552
parent de71c5d9b12d362a72a0dea943c01fe8d21c4b9e
1 file changed +1 -2
modified radicle/src/cob/store.rs
@@ -367,14 +367,13 @@ pub mod encoding {
}

pub mod rng {
-
    use crate::env;
    use rand::{rngs::StdRng, SeedableRng};

    /// Get the "standard" CSPRNG, seeded from OS entropy.
    /// The seed can be overwritten in debug mode with the `RAD_SEED` environment variable.
    pub fn std() -> StdRng {
        #[cfg(debug_assertions)]
-
        if let Some(seed) = env::seed() {
+
        if let Some(seed) = crate::env::seed() {
            return StdRng::from_seed(seed);
        }
        StdRng::from_entropy()