commit | 6a53a0fbde6aba848c79b1b76859acd4f6d7804a | [log] [tgz] |
---|---|---|
author | Benjamin Valentin <benjamin.valentin@ml-pa.com> | Tue Oct 20 18:10:24 2020 +0200 |
committer | Benjamin Valentin <benjamin.valentin@ml-pa.com> | Tue Oct 20 18:11:54 2020 +0200 |
tree | cb21c1ab8c43c78a8a7881fdb2f6f0e5ee67f97e | |
parent | 51dfe37cead7d9f3e10e95b3e6c7ffe0c3526ac6 [diff] |
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_ */