From 7a821a836f85ad2565c89011264ccf6ee6b24a6e Mon Sep 17 00:00:00 2001 From: bunnie Date: Tue, 18 Jun 2024 00:07:43 +0800 Subject: [PATCH] cleanup comments --- kernel/src/platform/cramium/rand.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kernel/src/platform/cramium/rand.rs b/kernel/src/platform/cramium/rand.rs index a68aca1ae..6326d3bce 100644 --- a/kernel/src/platform/cramium/rand.rs +++ b/kernel/src/platform/cramium/rand.rs @@ -94,7 +94,9 @@ pub fn init() { // // Each round pulls in 8*32 = 256 bits from HW TRNG 64 rounds of this would fold in 16,384 bits total. // Every subsequent call to get_u32() adds more entropy to the pool. This should give us about 100x safety - // margin. + // margin. The latest settings improvement on the TRNG makes me think this is extremely conservative, we + // could probably do fine with a 10x margin; but, the operation is fast enough that this allows us + // to be safe even if the TRNG is completely misconfigured. for _ in 0..64 { let _ = get_u32(); }