Function codal::microbit_seed_random()#

Function Documentation#

void codal::microbit_seed_random()#

Seed the random number generator (RNG).

This function uses the NRF52833’s in built cryptographic random number generator to seed a Galois LFSR. We do this as the hardware RNG is relatively high power, and is locked out by the BLE stack internally, with a less than optimal application interface. A Galois LFSR is sufficient for our applications, and much more lightweight.