aboutsummaryrefslogtreecommitdiffstats
path: root/components/rand/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/rand/lib.rs')
-rw-r--r--components/rand/lib.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/components/rand/lib.rs b/components/rand/lib.rs
index 263f9dd5a2c..0fb17a5f8ab 100644
--- a/components/rand/lib.rs
+++ b/components/rand/lib.rs
@@ -2,6 +2,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
+use lazy_static::lazy_static;
+use log::trace;
/// A random number generator which shares one instance of an `OsRng`.
///
/// A problem with `OsRng`, which is inherited by `StdRng` and so
@@ -11,12 +13,6 @@
///
/// This crate fixes that, by only using one `OsRng`, which is just
/// used to seed and re-seed an `ServoRng`.
-
-#[macro_use]
-extern crate lazy_static;
-#[macro_use]
-extern crate log;
-
use rand::distributions::{Distribution, Standard};
use rand::rngs::adapter::ReseedingRng;
use rand::rngs::OsRng;