WIP: Added source of Arduino noise to RNG

This commit is contained in:
Chad Attermann committed 2024-06-05 00:49:13 -06:00
1 parent f415b5e0b5
commit ef69347ec8
1 file changed
+3
+3
View File
@@ -47,6 +47,9 @@ Reticulum::Reticulum() : _object(new Object()) {
//Ethernet.begin(mac);
// WiFi.macAddress(mac);
//RNG.stir(mac, sizeof(mac));
int seed = analogRead(0);
RNG.stir((uint8_t*)&seed, sizeof(seed));
// Add the noise source to the list of sources known to RNG.
//RNG.addNoiseSource(noise);