Changed to work with: http://redbearlab.com/blenano/

Dependents:   Garagem

Fork of RNG by Francois Berder

Revision:
2:2eb90943983b
Parent:
1:0536a4ca8d35
Child:
3:75b4f86fb3aa
diff -r 0536a4ca8d35 -r 2eb90943983b Random.cpp
--- a/Random.cpp	Tue Sep 17 12:35:12 2013 +0000
+++ b/Random.cpp	Tue Sep 17 18:18:15 2013 +0000
@@ -1,9 +1,10 @@
 #include "Random.h"
 #include "Crypto.h"
 
-Random::Random():
-e(p19),
-f(p20)
+static uint8_t pool[16];
+static AnalogIn e(p19),f(p20);
+
+void Random::init()
 {
     AnalogIn a(p15), b(p16), c(p17), d(p18);