MCPcopy Index your code
hub / github.com/FrameworkComputer/inputmodule-rs / get_random_byte

Function get_random_byte

ledmatrix/src/main.rs:563–569  ·  view source on GitHub ↗
(rosc: &RingOscillator<Enabled>)

Source from the content-addressed store, hash-verified

561}
562
563fn get_random_byte(rosc: &RingOscillator<Enabled>) -> u8 {
564 let mut byte = 0;
565 for i in 0..8 {
566 byte += (rosc.get_random_bit() as u8) << i;
567 }
568 byte
569}
570
571fn dyn_sleep_mode(state: &LedmatrixState) -> SleepMode {
572 if state.debug_mode {

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected