1
0
Fork 0
forked from AbleOS/ableos
ableos/sysdata/libraries/stn/src/random.hb
koniifer ad85f82be3 begin work for fb_driver interface
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()
2024-08-29 21:37:49 +01:00

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
}