mirror of
https://github.com/ratspeak/microReticulum
synced 2026-11-22 23:10:38 +00:00
WIP: Added source of Arduino noise to RNG
This commit is contained in:
1 parent
f415b5e0b5
commit
ef69347ec8
1 file changed
+3
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user