From 01475137bb6f9b3b2d063b9e9766e8c5c95b7b4c Mon Sep 17 00:00:00 2001 From: bunnie Date: Tue, 2 Dec 2025 01:40:39 +0800 Subject: [PATCH] add code to test the random seed --- services/bao-console/src/cmds/test.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/services/bao-console/src/cmds/test.rs b/services/bao-console/src/cmds/test.rs index 21194bdf2..d36574836 100644 --- a/services/bao-console/src/cmds/test.rs +++ b/services/bao-console/src/cmds/test.rs @@ -121,6 +121,10 @@ impl<'a> ShellCmdApi<'a> for Test { iox.set_gpio_pin_value(IoxPort::PF, 6, IoxValue::Low); log::info!("sent shutdown to axp2101"); } + "seed" => { + let (_, value) = std::env::vars().find(|(key, _value)| key == "SEED").unwrap(); + log::info!("Seed: {:?}", value); + } "keepon" => { todo!("Fix this to use DCDC2 for keepon (as per baosec v2)"); }