From ac48c2645ff4a4a0a0b572e179a0133d29328d10 Mon Sep 17 00:00:00 2001 From: Joshy Orndorff Date: Thu, 19 Mar 2020 09:07:27 -0400 Subject: [PATCH] Review comments to code. --- pallets/randomness/src/lib.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pallets/randomness/src/lib.rs b/pallets/randomness/src/lib.rs index 1323d4e8b..df43681e4 100644 --- a/pallets/randomness/src/lib.rs +++ b/pallets/randomness/src/lib.rs @@ -1,4 +1,4 @@ -//! Generating randomness with weak entropy +//! Generating (insecure) randomness #![cfg_attr(not(feature = "std"), no_std)] use sp_core::H256; @@ -10,6 +10,10 @@ use sp_std::vec::Vec; #[cfg(test)] mod tests; + +/// The pallet's configuration trait. +/// This trait includes two randomness sources. In production you will only ever need one. This pallet +/// includes both merely to demonstrate both. pub trait Trait: system::Trait { type Event: From + Into<::Event>;