forked from AbleOS/ableos
ad85f82be3
create hardware rng buffer & stn.random.uint_64 (currently weird) move examples out of fb_driver (currently broken) remove literal kernel panic from `info!("AHHH")` re-implement stn.buffer.send_message()
8 lines
149 B
Plaintext
8 lines
149 B
Plaintext
uint_64 := fn(min: uint, max: uint): uint {
|
|
rng := @eca(uint, 3, 4)
|
|
|
|
if min != 0 | max != 0 {
|
|
return rng % (max - min + 1) + min
|
|
}
|
|
return rng
|
|
} |