From e8dc10977a5dbd5f7cb1deaf144d16bb4c69ac00 Mon Sep 17 00:00:00 2001 From: bunnie Date: Mon, 21 Jun 2021 22:21:40 +0800 Subject: [PATCH] clarify trng hosted mode messages, reduce noise --- services/trng/src/main.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/services/trng/src/main.rs b/services/trng/src/main.rs index f0d142a67..cadd0e1c8 100644 --- a/services/trng/src/main.rs +++ b/services/trng/src/main.rs @@ -432,8 +432,8 @@ mod implementation { pub fn wait_full(&self) { } pub fn get_buf(&mut self, len: u16) -> TrngBuf { - if self.msgcount < 10 { - log::info!("hosted mode TRNG is *not* random, it is an LFSR"); + if self.msgcount < 3 { + log::info!("hosted mode TRNG is *not* random, it is a deterministic LFSR"); } self.msgcount += 1; let mut tb = TrngBuf {data: [0; 1024], len}; @@ -445,8 +445,8 @@ mod implementation { } pub fn get_trng(&mut self, _count: usize) -> [u32; 2] { - if self.msgcount < 10 { - log::info!("hosted mode TRNG is *not* random, it is an LFSR"); + if self.msgcount < 3 { + log::info!("hosted mode TRNG is *not* random, it is a deterministic LFSR"); } self.msgcount += 1; let mut ret: [u32; 2] = [0; 2];