Refactor crypto RNG; add getrandom() support
[tinc] / src / xoshiro.c
index 469c74a..11eaf5b 100644 (file)
@@ -6,9 +6,10 @@ worldwide. This software is distributed without any warranty.
 
 See <http://creativecommons.org/publicdomain/zero/1.0/>. */
 
-#include <stdint.h>
+#include "system.h"
 
 #include "crypto.h"
+#include "random.h"
 
 /* This is xoshiro256** 1.0, one of our all-purpose, rock-solid
    generators. It has excellent (sub-ns) speed, a state (256 bits) that is