Random number generator

Dependents:   mBuinoBlinky

Revision:
2:2eb90943983b
Parent:
1:0536a4ca8d35
--- 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);