Skip to content
Snippets Groups Projects

Add CSPRNG

Merged schneider requested to merge schneider/rng into master
All threads resolved!
4 files
+ 123
2
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -18,7 +18,6 @@
#include "i2c.h"
#include "rtc.h"
#include "spi.h"
#include "trng.h"
#include "wdt.h"
/*
@@ -83,6 +82,11 @@ int hardware_early_init(void)
E_BUSY)
;
/*
* RNG
*/
rng_init();
/* If we don't have a valid time yet, set it to 2019-01-01 */
if (RTC_GetSecond() < 1546300800L) {
epic_rtc_set_milliseconds(1546300800UL * 1000);
Loading