1
0
mirror of https://github.com/taigrr/arduinolibs synced 2025-01-18 04:33:12 -08:00

Move example EEPROM address for RNG from 500 to 950

This commit is contained in:
Rhys Weatherley 2015-05-03 14:25:20 +10:00
parent 2e64f4bec9
commit 3b4a928457
5 changed files with 8 additions and 8 deletions

View File

@ -112,8 +112,8 @@ all of the application's noise sources:
\code \code
void setup() { void setup() {
// Initialize the random number generator with the application tag // Initialize the random number generator with the application tag
// "MyApp 1.0" and load the previous seed from EEPROM address 500. // "MyApp 1.0" and load the previous seed from EEPROM address 950.
RNG.begin("MyApp 1.0", 500); RNG.begin("MyApp 1.0", 950);
// Add the noise source to the list of sources known to RNG. // Add the noise source to the list of sources known to RNG.
RNG.addNoiseSource(noise); RNG.addNoiseSource(noise);
@ -132,7 +132,7 @@ those can be mixed in during the setup() function after calling begin():
\code \code
void setup() { void setup() {
RNG.begin("MyApp 1.0", 500); RNG.begin("MyApp 1.0", 950);
RNG.stir(serial_number, sizeof(serial_number)); RNG.stir(serial_number, sizeof(serial_number));
RNG.stir(mac_address, sizeof(mac_address)); RNG.stir(mac_address, sizeof(mac_address));
RNG.addNoiseSource(noise); RNG.addNoiseSource(noise);

View File

@ -71,8 +71,8 @@
* Ethernet.begin(mac_address); * Ethernet.begin(mac_address);
* *
* // Initialize the random number generator with the application tag * // Initialize the random number generator with the application tag
* // "MyApp 1.0" and load the previous seed from EEPROM address 500. * // "MyApp 1.0" and load the previous seed from EEPROM address 950.
* RNG.begin("MyApp 1.0", 500); * RNG.begin("MyApp 1.0", 950);
* *
* // Stir in the Ethernet MAC address. * // Stir in the Ethernet MAC address.
* RNG.stir(mac_address, sizeof(mac_address)); * RNG.stir(mac_address, sizeof(mac_address));

View File

@ -207,7 +207,7 @@ void setup()
// Start the random number generator. We don't initialise a noise // Start the random number generator. We don't initialise a noise
// source here because we don't need one for testing purposes. // source here because we don't need one for testing purposes.
// Real DH applications should of course use a proper noise source. // Real DH applications should of course use a proper noise source.
RNG.begin("TestCurve25519 1.0", 500); RNG.begin("TestCurve25519 1.0", 950);
// Perform the tests. // Perform the tests.
testEval(); testEval();

View File

@ -227,7 +227,7 @@ void setup()
// Start the random number generator. We don't initialise a noise // Start the random number generator. We don't initialise a noise
// source here because we don't need one for testing purposes. // source here because we don't need one for testing purposes.
// Real applications should of course use a proper noise source. // Real applications should of course use a proper noise source.
RNG.begin("TestEd25519 1.0", 500); RNG.begin("TestEd25519 1.0", 950);
// Perform the tests. // Perform the tests.
testFixedVectors(); testFixedVectors();

View File

@ -12,7 +12,7 @@
#define RNG_APP_TAG "MyApp 1.0" #define RNG_APP_TAG "MyApp 1.0"
// EEPROM address to save the random number seed at. // EEPROM address to save the random number seed at.
#define RNG_EEPROM_ADDRESS 500 #define RNG_EEPROM_ADDRESS 950
// Noise source to seed the random number generator. // Noise source to seed the random number generator.
TransistorNoiseSource noise(A1); TransistorNoiseSource noise(A1);