Changed to work with: http://redbearlab.com/blenano/
Fork of RNG by
Diff: Random.h
- Revision:
- 0:299f3795114b
- Child:
- 1:0536a4ca8d35
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Random.h Tue Sep 17 11:30:29 2013 +0000 @@ -0,0 +1,21 @@ +#ifndef RANDOM_H +#define RANDOM_H + +#include "mbed.h" + +class Random +{ + public : + + Random(); + + uint8_t getByte(); + void getBytes(uint8_t *out, uint32_t length); + + private : + + uint8_t pool[16]; + AnalogIn f; +}; + +#endif