platform-specific.inc: add support for RIOT-OS
diff --git a/platform-specific.inc b/platform-specific.inc index 148cafc..92ba2b1 100644 --- a/platform-specific.inc +++ b/platform-specific.inc
@@ -66,6 +66,16 @@ } #define default_RNG_defined 1 +#elif defined(RIOT_VERSION) + +#include <random.h> + +static int default_RNG(uint8_t *dest, unsigned size) { + random_bytes(dest, size); + return 1; +} +#define default_RNG_defined 1 + #endif /* platform */ #endif /* _UECC_PLATFORM_SPECIFIC_H_ */